Replace "gdouble" with "double"
authorBenjamin Otte <otte@redhat.com>
Fri, 24 Jul 2020 20:32:16 +0000 (22:32 +0200)
committerBenjamin Otte <otte@redhat.com>
Fri, 24 Jul 2020 22:47:36 +0000 (00:47 +0200)
234 files changed:
demos/gtk-demo/assistant.c
demos/gtk-demo/drawingarea.c
demos/gtk-demo/font_features.c
demos/gtk-demo/fontplane.c
demos/gtk-demo/gestures.c
demos/gtk-demo/hypertext.c
demos/gtk-demo/listview_colors.c
demos/gtk-demo/main.c
demos/gtk-demo/paint.c
demos/gtk-demo/printing.c
demos/gtk-demo/spinbutton.c
demos/widget-factory/widget-factory.c
docs/reference/gtk/getting_started.md
examples/drawing.c
gdk/broadway/gdkdevice-broadway.c
gdk/broadway/gdksurface-broadway.c
gdk/gdkcairo.c
gdk/gdkcairo.h
gdk/gdkdevice.c
gdk/gdkdevice.h
gdk/gdkdeviceprivate.h
gdk/gdkdisplay.c
gdk/gdkdisplayprivate.h
gdk/gdkevents.c
gdk/gdkinternals.h
gdk/gdkrgba.c
gdk/gdksurface.c
gdk/gdksurfaceprivate.h
gdk/macos/gdkmacosdevice.c
gdk/macos/gdkmacosdisplay-translate.c
gdk/macos/gdkmacosdrag.c
gdk/macos/gdkmacossurface.c
gdk/wayland/gdkdevice-wayland.c
gdk/wayland/gdkdisplay-wayland.c
gdk/wayland/gdksurface-wayland.c
gdk/win32/gdkclipdrop-win32.c
gdk/win32/gdkcursor-win32.c
gdk/win32/gdkdevice-virtual.c
gdk/win32/gdkdevice-win32.c
gdk/win32/gdkdevice-win32.h
gdk/win32/gdkdevice-wintab.c
gdk/win32/gdkdevice-wintab.h
gdk/win32/gdkdevicemanager-win32.c
gdk/win32/gdkdrag-win32.c
gdk/win32/gdkevents-win32.c
gdk/win32/gdksurface-win32.c
gdk/win32/gdksurface-win32.h
gdk/win32/gdkwin32misc.h
gdk/x11/gdkdevice-xi2.c
gdk/x11/gdkdevicemanager-xi2.c
gdk/x11/gdkdrag-x11.c
gdk/x11/gdkeventsource.c
gdk/x11/gdkprivate-x11.h
gdk/x11/gdksurface-x11.c
gdk/x11/gdkxftdefaults.c
gsk/gskcairoblur.c
gsk/gskrendernodeimpl.c
gtk/a11y/gtklevelbaraccessible.c
gtk/a11y/gtkpanedaccessible.c
gtk/a11y/gtkprogressbaraccessible.c
gtk/a11y/gtkrangeaccessible.c
gtk/a11y/gtkscalebuttonaccessible.c
gtk/a11y/gtkspinbuttonaccessible.c
gtk/a11y/gtktextcellaccessible.c
gtk/a11y/gtktextviewaccessible.c
gtk/gen-paper-names.c
gtk/gsettings-mapping.c
gtk/gskpango.c
gtk/gtkadjustment.c
gtk/gtkadjustment.h
gtk/gtkadjustmentprivate.h
gtk/gtkbuilder.c
gtk/gtkbutton.c
gtk/gtkcalendar.c
gtk/gtkcellrendererspin.c
gtk/gtkcellrendererspinner.c
gtk/gtkcellrenderertext.c
gtk/gtkcolorchooserwidget.c
gtk/gtkcoloreditor.c
gtk/gtkcolorplane.c
gtk/gtkcolorscale.c
gtk/gtkcolorswatch.c
gtk/gtkcolorswatchprivate.h
gtk/gtkcombobox.c
gtk/gtkcssboxesimplprivate.h
gtk/gtkcsscolorvalue.c
gtk/gtkcsscolorvalueprivate.h
gtk/gtkcustompaperunixdialog.c
gtk/gtkdragsource.c
gtk/gtkentry.c
gtk/gtkentry.h
gtk/gtkeventcontrollerscroll.c
gtk/gtkexpander.c
gtk/gtkfilechooserwidget.c
gtk/gtkflowbox.c
gtk/gtkfontchooserwidget.c
gtk/gtkgesture.c
gtk/gtkgesture.h
gtk/gtkgestureclick.c
gtk/gtkgestureclickprivate.h
gtk/gtkgesturedrag.c
gtk/gtkgesturedrag.h
gtk/gtkgesturedragprivate.h
gtk/gtkgesturelongpress.c
gtk/gtkgesturelongpressprivate.h
gtk/gtkgesturepan.c
gtk/gtkgesturepanprivate.h
gtk/gtkgesturerotate.c
gtk/gtkgesturerotate.h
gtk/gtkgesturerotateprivate.h
gtk/gtkgesturestylus.c
gtk/gtkgesturestylus.h
gtk/gtkgesturestylusprivate.h
gtk/gtkgestureswipe.c
gtk/gtkgestureswipe.h
gtk/gtkgestureswipeprivate.h
gtk/gtkgesturezoom.c
gtk/gtkgesturezoom.h
gtk/gtkgesturezoomprivate.h
gtk/gtkhsla.c
gtk/gtkiconview.c
gtk/gtkimcontextwayland.c
gtk/gtkinfobar.c
gtk/gtkkineticscrolling.c
gtk/gtkkineticscrollingprivate.h
gtk/gtklabel.c
gtk/gtklevelbar.c
gtk/gtklevelbar.h
gtk/gtklistbox.c
gtk/gtkmagnifier.c
gtk/gtkmagnifierprivate.h
gtk/gtkmarshalers.list
gtk/gtknotebook.c
gtk/gtkpadcontroller.c
gtk/gtkpagesetup.c
gtk/gtkpagesetup.h
gtk/gtkpagesetupunixdialog.c
gtk/gtkpaned.c
gtk/gtkpapersize.c
gtk/gtkpapersize.h
gtk/gtkpathbar.c
gtk/gtkplacessidebar.c
gtk/gtkpointerfocus.c
gtk/gtkpointerfocusprivate.h
gtk/gtkprintbackend.c
gtk/gtkprintbackendprivate.h
gtk/gtkprintcontext.c
gtk/gtkprintcontext.h
gtk/gtkprinter.c
gtk/gtkprinter.h
gtk/gtkprinterprivate.h
gtk/gtkprintjob.c
gtk/gtkprintjob.h
gtk/gtkprintoperation-portal.c
gtk/gtkprintoperation-private.h
gtk/gtkprintoperation-unix.c
gtk/gtkprintoperation-win32.c
gtk/gtkprintoperation.c
gtk/gtkprintsettings.c
gtk/gtkprintsettings.h
gtk/gtkprintunixdialog.c
gtk/gtkprintutils.c
gtk/gtkprintutils.h
gtk/gtkprivate.h
gtk/gtkprogressbar.c
gtk/gtkprogressbar.h
gtk/gtkprogresstracker.c
gtk/gtkprogresstrackerprivate.h
gtk/gtkrange.c
gtk/gtkrange.h
gtk/gtkrangeprivate.h
gtk/gtkrender.c
gtk/gtkrender.h
gtk/gtkrenderborder.c
gtk/gtkrevealer.c
gtk/gtkroundedbox.c
gtk/gtkscale.c
gtk/gtkscale.h
gtk/gtkscalebutton.c
gtk/gtkscalebutton.h
gtk/gtkscrolledwindow.c
gtk/gtksettings.c
gtk/gtkshortcutssection.c
gtk/gtksnapshot.c
gtk/gtksnapshot.h
gtk/gtkspinbutton.c
gtk/gtkspinbutton.h
gtk/gtkstack.c
gtk/gtkstylecontext.c
gtk/gtkstylecontext.h
gtk/gtkswitch.c
gtk/gtktextattributes.h
gtk/gtktexthandle.c
gtk/gtktextview.c
gtk/gtktextview.h
gtk/gtktooltip.c
gtk/gtktreedatalist.c
gtk/gtktreedatalist.h
gtk/gtktreeview.c
gtk/gtktreeviewcolumn.c
gtk/gtkviewport.c
gtk/gtkvolumebutton.c
gtk/gtkwidget.c
gtk/gtkwidget.h
gtk/gtkwindow.c
gtk/gtkwindowprivate.h
gtk/inspector/visual.c
gtk/tools/gdkpixbufutils.c
modules/printbackends/gtkprintbackendcloudprint.c
modules/printbackends/gtkprintbackendcups.c
modules/printbackends/gtkprintbackendfile.c
modules/printbackends/gtkprintbackendlpr.c
tests/motion-compression.c
tests/rendernode-create-tests.c
tests/scrolling-performance.c
tests/testassistant.c
tests/testframe.c
tests/testgrid.c
tests/testgtk.c
tests/testiconview.c
tests/testlevelbar.c
tests/testscale.c
tests/testscrolledwindow.c
tests/testtreemodel.c
tests/testtreepos.c
tests/testvolumebutton.c
tests/testwidgetfocus.c
tests/video-timer.c
testsuite/a11y/accessibility-dump.c
testsuite/a11y/tree-performance.c
testsuite/a11y/value.c
testsuite/gtk/builder.c
testsuite/gtk/gestures.c
testsuite/gtk/notify.c

index d3f3780a6bfb4bb58b1aa82bb9b375b95ace2a53..58405f6cc99f2d8344c5f39e8d12619503645820 100644 (file)
@@ -12,7 +12,7 @@ static GtkWidget *progress_bar = NULL;
 static gboolean
 apply_changes_gradually (gpointer data)
 {
-  gdouble fraction;
+  double fraction;
 
   /* Work, work, work... */
   fraction = gtk_progress_bar_get_fraction (GTK_PROGRESS_BAR (progress_bar));
index d36b6aa6d24e3548fba8b175715f47be2aaa0484..f7b567d3825c36a2ad0bd38ab8e8bec100d0a7b4 100644 (file)
@@ -64,8 +64,8 @@ scribble_draw (GtkDrawingArea *da,
 /* Draw a rectangle on the screen */
 static void
 draw_brush (GtkWidget *widget,
-            gdouble    x,
-            gdouble    y)
+            double     x,
+            double     y)
 {
   GdkRectangle update_rect;
   cairo_t *cr;
index 0e7a3cf333a7701135405c8622e3c49aae1b2aec..6174b27f9b1c727136566d554797d0fc87d20f27 100644 (file)
@@ -728,7 +728,7 @@ static void
 entry_activated (GtkEntry *entry,
                  GtkAdjustment *adjustment)
 {
-  gdouble value;
+  double value;
   char *err = NULL;
 
   value = g_strtod (gtk_editable_get_text (GTK_EDITABLE (entry)), &err);
@@ -939,7 +939,7 @@ instance_changed (GtkComboBox *combo)
     {
       Axis *axis;
       Axis akey;
-      gdouble value;
+      double value;
 
       value = coords[ai[i].axis_index];
 
index 38367992938cd42244aaab5aa34d17e73062b7af..b8c4f8c87dd7e227e9e81beac19b84aef993f40c 100644 (file)
@@ -39,7 +39,7 @@ val_to_xy (GtkFontPlane *plane,
            int           *x,
            int           *y)
 {
-  gdouble u, v;
+  double u, v;
   int width, height;
 
   width = gtk_widget_get_allocated_width (GTK_WIDGET (plane));
@@ -129,7 +129,7 @@ update_value (GtkFontPlane *plane,
               int            y)
 {
   GtkWidget *widget = GTK_WIDGET (plane);
-  gdouble u, v;
+  double u, v;
 
   u = CLAMP (x * (1.0 / gtk_widget_get_allocated_width (widget)), 0, 1);
   v = CLAMP (1 - y * (1.0 / gtk_widget_get_allocated_height (widget)), 0, 1);
@@ -142,8 +142,8 @@ update_value (GtkFontPlane *plane,
 
 static void
 plane_drag_gesture_begin (GtkGestureDrag *gesture,
-                          gdouble         start_x,
-                          gdouble         start_y,
+                          double          start_x,
+                          double          start_y,
                           GtkFontPlane  *plane)
 {
   guint button;
@@ -164,11 +164,11 @@ plane_drag_gesture_begin (GtkGestureDrag *gesture,
 
 static void
 plane_drag_gesture_update (GtkGestureDrag *gesture,
-                           gdouble         offset_x,
-                           gdouble         offset_y,
+                           double          offset_x,
+                           double          offset_y,
                            GtkFontPlane  *plane)
 {
-  gdouble start_x, start_y;
+  double start_x, start_y;
 
   gtk_gesture_drag_get_start_point (GTK_GESTURE_DRAG (gesture),
                                     &start_x, &start_y);
@@ -177,8 +177,8 @@ plane_drag_gesture_update (GtkGestureDrag *gesture,
 
 static void
 plane_drag_gesture_end (GtkGestureDrag *gesture,
-                        gdouble         offset_x,
-                        gdouble         offset_y,
+                        double          offset_x,
+                        double          offset_y,
                         GtkFontPlane  *plane)
 {
   set_cross_cursor (GTK_WIDGET (plane), FALSE);
index 99dccaa9a51c73885b0f5ff751941499bf9da33c..690d4ea3557317c7dc4498b6190ad7d59716b645 100644 (file)
@@ -9,8 +9,8 @@
 
 static GtkGesture *rotate = NULL;
 static GtkGesture *zoom = NULL;
-static gdouble swipe_x = 0;
-static gdouble swipe_y = 0;
+static double swipe_x = 0;
+static double swipe_y = 0;
 static gboolean long_pressed = FALSE;
 
 static gboolean
@@ -26,8 +26,8 @@ touchpad_swipe_gesture_begin (GtkGesture       *gesture,
 
 static void
 swipe_gesture_swept (GtkGestureSwipe *gesture,
-                     gdouble          velocity_x,
-                     gdouble          velocity_y,
+                     double           velocity_x,
+                     double           velocity_y,
                      GtkWidget       *widget)
 {
   swipe_x = velocity_x / 10;
@@ -37,8 +37,8 @@ swipe_gesture_swept (GtkGestureSwipe *gesture,
 
 static void
 long_press_gesture_pressed (GtkGestureLongPress *gesture,
-                            gdouble              x,
-                            gdouble              y,
+                            double               x,
+                            double               y,
                             GtkWidget           *widget)
 {
   long_pressed = TRUE;
@@ -56,8 +56,8 @@ long_press_gesture_end (GtkGesture       *gesture,
 
 static void
 rotation_angle_changed (GtkGestureRotate *gesture,
-                        gdouble           angle,
-                        gdouble           delta,
+                        double            angle,
+                        double            delta,
                         GtkWidget        *widget)
 {
   gtk_widget_queue_draw (widget);
@@ -65,7 +65,7 @@ rotation_angle_changed (GtkGestureRotate *gesture,
 
 static void
 zoom_scale_changed (GtkGestureZoom *gesture,
-                    gdouble         scale,
+                    double          scale,
                     GtkWidget      *widget)
 {
   gtk_widget_queue_draw (widget);
@@ -93,8 +93,8 @@ drawing_area_draw (GtkDrawingArea *area,
     {
       cairo_pattern_t *pat;
       cairo_matrix_t matrix;
-      gdouble angle, scale;
-      gdouble x_center, y_center;
+      double angle, scale;
+      double x_center, y_center;
 
       gtk_gesture_get_bounding_box_center (GTK_GESTURE (zoom), &x_center, &y_center);
 
index ad753c175604c7c862179138de802ca6c75131d0..95c5a3ea316fd6c57a258a8f45a26fe1272ae150 100644 (file)
@@ -140,8 +140,8 @@ static void set_cursor_if_appropriate (GtkTextView *text_view,
 static void
 released_cb (GtkGestureClick *gesture,
              guint            n_press,
-             gdouble          x,
-             gdouble          y,
+             double           x,
+             double           y,
              GtkWidget       *text_view)
 {
   GtkTextIter start, end, iter;
@@ -168,8 +168,8 @@ released_cb (GtkGestureClick *gesture,
 
 static void
 motion_cb (GtkEventControllerMotion *controller,
-           gdouble                   x,
-           gdouble                   y,
+           double                    x,
+           double                    y,
            GtkTextView              *text_view)
 {
   set_cursor_if_appropriate (text_view, x, y);
index b735fd2a1c95f192af04cb153fcdbceec6937ebe..edbdb75c4dae104565a7950131c7d19547d3e7de 100644 (file)
@@ -89,14 +89,14 @@ static GParamSpec *color_properties[N_COLOR_PROPS] = { NULL, };
 
 static void
 rgb_to_hsv (GdkRGBA *rgba,
-            gdouble *h_out,
-            gdouble *s_out,
-            gdouble *v_out)
+            double  *h_out,
+            double  *s_out,
+            double  *v_out)
 {
-  gdouble red, green, blue;
-  gdouble h, s, v;
-  gdouble min, max;
-  gdouble delta;
+  double red, green, blue;
+  double h, s, v;
+  double min, max;
+  double delta;
 
   red = rgba->red;
   green = rgba->green;
index 889b539dc1af556ea06b7fc55449cec7865bbef6..722ae6fa08baf3f80ef024fef3ebe369209624de 100644 (file)
@@ -270,8 +270,6 @@ static const char *types[] =
   "gshort",
   "gushort",
   "gulong",
-  "gdouble",
-  "gldouble",
   "gpointer",
   "NULL",
   "GList",
index d3e6c59cf1327d31d6cf1ff6c1711f32af8267d9..e95e25a5a1ab1286b638d827a9c01708d09a0311 100644 (file)
@@ -20,7 +20,7 @@ typedef struct
   cairo_t *cr;
   GdkRGBA draw_color;
   GtkPadController *pad_controller;
-  gdouble brush_size;
+  double brush_size;
 } DrawingArea;
 
 typedef struct
@@ -166,7 +166,7 @@ on_pad_knob_change (GSimpleAction *action,
                     GVariant      *parameter,
                     DrawingArea   *area)
 {
-  gdouble value = g_variant_get_double (parameter);
+  double value = g_variant_get_double (parameter);
 
   area->brush_size = value;
 }
@@ -255,9 +255,9 @@ drawing_area_class_init (DrawingAreaClass *klass)
 static void
 drawing_area_apply_stroke (DrawingArea   *area,
                            GdkDeviceTool *tool,
-                           gdouble        x,
-                           gdouble        y,
-                           gdouble        pressure)
+                           double         x,
+                           double         y,
+                           double         pressure)
 {
   if (gdk_device_tool_get_tool_type (tool) == GDK_DEVICE_TOOL_TYPE_ERASER)
     {
@@ -281,8 +281,8 @@ drawing_area_apply_stroke (DrawingArea   *area,
 
 static void
 stylus_gesture_down (GtkGestureStylus *gesture,
-                     gdouble           x,
-                     gdouble           y,
+                     double            x,
+                     double            y,
                      DrawingArea      *area)
 {
   cairo_new_path (area->cr);
@@ -290,13 +290,13 @@ stylus_gesture_down (GtkGestureStylus *gesture,
 
 static void
 stylus_gesture_motion (GtkGestureStylus *gesture,
-                       gdouble           x,
-                       gdouble           y,
+                       double            x,
+                       double            y,
                        DrawingArea      *area)
 {
   GdkTimeCoord *backlog;
   GdkDeviceTool *tool;
-  gdouble pressure;
+  double pressure;
   guint n_items;
 
   tool = gtk_gesture_stylus_get_device_tool (gesture);
index 5dd0ed493b062d4adbde436e7c490b809df0516e..f095c5957552944a4e70bf2be6e76d88e5ea45e1 100644 (file)
@@ -15,7 +15,7 @@
 typedef struct
 {
   char *resourcename;
-  gdouble font_size;
+  double font_size;
 
   int lines_per_page;
   char **lines;
@@ -62,7 +62,7 @@ draw_page (GtkPrintOperation *operation,
   cairo_t *cr;
   PangoLayout *layout;
   int text_width, text_height;
-  gdouble width;
+  double width;
   int line, i;
   PangoFontDescription *desc;
   char *page_str;
index da41f044077af892dc88ca15d28c323cf1715d32..8fd93ddb0f536f4cb0a54223dfcfd1f73c14748a 100644 (file)
 
 int
 spinbutton_hex_spin_input (GtkSpinButton *spin_button,
-                           gdouble       *new_val)
+                           double        *new_val)
 {
   const char *buf;
   char *err;
-  gdouble res;
+  double res;
 
   buf = gtk_editable_get_text (GTK_EDITABLE (spin_button));
   res = strtol (buf, &err, 16);
@@ -33,7 +33,7 @@ spinbutton_hex_spin_output (GtkSpinButton *spin_button)
 {
   GtkAdjustment *adjustment;
   char *buf;
-  gdouble val;
+  double val;
 
   adjustment = gtk_spin_button_get_adjustment (spin_button);
   val = gtk_adjustment_get_value (adjustment);
@@ -50,7 +50,7 @@ spinbutton_hex_spin_output (GtkSpinButton *spin_button)
 
 int
 spinbutton_time_spin_input (GtkSpinButton *spin_button,
-                            gdouble       *new_val)
+                            double        *new_val)
 {
   const char *text;
   char **str;
@@ -92,8 +92,8 @@ spinbutton_time_spin_output (GtkSpinButton *spin_button)
 {
   GtkAdjustment *adjustment;
   char *buf;
-  gdouble hours;
-  gdouble minutes;
+  double hours;
+  double minutes;
 
   adjustment = gtk_spin_button_get_adjustment (spin_button);
   hours = gtk_adjustment_get_value (adjustment) / 60.0;
@@ -123,7 +123,7 @@ static const char *month[12] = {
 
 int
 spinbutton_month_spin_input (GtkSpinButton *spin_button,
-                             gdouble       *new_val)
+                             double        *new_val)
 {
   int i;
   char *tmp1, *tmp2;
@@ -145,7 +145,7 @@ spinbutton_month_spin_input (GtkSpinButton *spin_button,
       *new_val = 0.0;
       return GTK_INPUT_ERROR;
     }
-  *new_val = (gdouble) i;
+  *new_val = (double) i;
 
   return TRUE;
 }
@@ -154,7 +154,7 @@ int
 spinbutton_month_spin_output (GtkSpinButton *spin_button)
 {
   GtkAdjustment *adjustment;
-  gdouble value;
+  double value;
   int i;
 
   adjustment = gtk_spin_button_get_adjustment (spin_button);
index 90915f6b70c3d1de2a1769f62f5f1b5d7d73154d..1ca731eb2ce4da49abab024c99453fc31da2f09c 100644 (file)
@@ -482,7 +482,7 @@ pulse_it (GtkWidget *widget)
 static void
 update_pulse_time (GtkAdjustment *adjustment, GtkWidget *widget)
 {
-  gdouble value;
+  double value;
   guint pulse_id;
 
   value = gtk_adjustment_get_value (adjustment);
@@ -537,11 +537,11 @@ on_entry_icon_release (GtkEntry            *entry,
 
 static void
 on_scale_button_value_changed (GtkScaleButton *button,
-                               gdouble         value,
+                               double          value,
                                gpointer        user_data)
 {
   GtkAdjustment *adjustment;
-  gdouble val;
+  double val;
   char *str;
 
   adjustment = gtk_scale_button_get_adjustment (button);
index d3b62b437cfb3891de5ff0275b6dc6259bcda349..d12d35ff30366a65495e5c8e4e70d6ce92445fd3 100644 (file)
@@ -426,8 +426,8 @@ draw_cb (GtkDrawingArea *drawing_area,
 /* Draw a rectangle on the surface at the given position */
 static void
 draw_brush (GtkWidget *widget,
-            gdouble    x,
-            gdouble    y)
+            double     x,
+            double     y)
 {
   cairo_t *cr;
 
index 4986f695397547aff8cb2cb3a990c2d8a0b82627..9bc05e5fdb0a2d22a616690837d2434a1e786b83 100644 (file)
@@ -59,8 +59,8 @@ draw_cb (GtkDrawingArea *drawing_area,
 /* Draw a rectangle on the surface at the given position */
 static void
 draw_brush (GtkWidget *widget,
-            gdouble    x,
-            gdouble    y)
+            double     x,
+            double     y)
 {
   cairo_t *cr;
 
index 23fc5fd8ddc98cdef83f460d27d0c0db1e182529..8fe6eab346d2e669fa8c7242db6b5cd4938f9bd9 100644 (file)
@@ -24,8 +24,8 @@
 #include "gdkprivate-broadway.h"
 
 static void gdk_broadway_device_get_state (GdkDevice       *device,
-                                           GdkSurface       *surface,
-                                           gdouble         *axes,
+                                           GdkSurface      *surface,
+                                           double          *axes,
                                            GdkModifierType *mask);
 static void gdk_broadway_device_set_surface_cursor (GdkDevice *device,
                                                     GdkSurface *surface,
@@ -46,8 +46,8 @@ static GdkGrabStatus gdk_broadway_device_grab   (GdkDevice     *device,
 static void          gdk_broadway_device_ungrab (GdkDevice     *device,
                                                  guint32        time_);
 static GdkSurface * gdk_broadway_device_surface_at_position (GdkDevice       *device,
-                                                             gdouble         *win_x,
-                                                             gdouble         *win_y,
+                                                             double          *win_x,
+                                                             double          *win_y,
                                                              GdkModifierType *mask);
 
 
@@ -79,11 +79,11 @@ gdk_broadway_device_init (GdkBroadwayDevice *device_core)
 
 static void
 gdk_broadway_device_get_state (GdkDevice       *device,
-                               GdkSurface       *surface,
-                               gdouble         *axes,
+                               GdkSurface      *surface,
+                               double          *axes,
                                GdkModifierType *mask)
 {
-  gdouble x, y;
+  double x, y;
 
   gdk_surface_get_device_position (surface, device, &x, &y, mask);
 
@@ -271,8 +271,8 @@ gdk_broadway_device_ungrab (GdkDevice *device,
 
 static GdkSurface *
 gdk_broadway_device_surface_at_position (GdkDevice       *device,
-                                         gdouble         *win_x,
-                                         gdouble         *win_y,
+                                         double          *win_x,
+                                         double          *win_y,
                                          GdkModifierType *mask)
 {
   GdkSurface *surface = NULL;
index 5b5abdb6b3777b39ccd2a305c3a31469e73e6f55..87a0642630e60bac2656044230b3a2ea0af03f80 100644 (file)
@@ -736,8 +736,8 @@ gdk_broadway_surface_get_root_coords (GdkSurface *surface,
 static gboolean
 gdk_broadway_surface_get_device_state (GdkSurface      *surface,
                                        GdkDevice       *device,
-                                       gdouble         *x,
-                                       gdouble         *y,
+                                       double          *x,
+                                       double          *y,
                                        GdkModifierType *mask)
 {
   GdkSurface *child;
index 908fc75af882979130dd7ddc31d1ad483240b66a..d28b7e5b97618945726c301e2a0ac5dbb50181de 100644 (file)
@@ -213,8 +213,8 @@ gdk_cairo_surface_paint_pixbuf (cairo_surface_t *surface,
 void
 gdk_cairo_set_source_pixbuf (cairo_t         *cr,
                              const GdkPixbuf *pixbuf,
-                             gdouble          pixbuf_x,
-                             gdouble          pixbuf_y)
+                             double           pixbuf_x,
+                             double           pixbuf_y)
 {
   cairo_format_t format;
   cairo_surface_t *surface;
index 49b4117eb094c4833d674577871ac67e83d7cd08..e2dc85c41ca45f46056ce02548892e90e10f4c53 100644 (file)
@@ -35,8 +35,8 @@ void       gdk_cairo_set_source_rgba    (cairo_t              *cr,
 GDK_AVAILABLE_IN_ALL
 void       gdk_cairo_set_source_pixbuf  (cairo_t              *cr,
                                          const GdkPixbuf      *pixbuf,
-                                         gdouble               pixbuf_x,
-                                         gdouble               pixbuf_y);
+                                         double                pixbuf_x,
+                                         double                pixbuf_y);
 
 GDK_AVAILABLE_IN_ALL
 void       gdk_cairo_rectangle          (cairo_t              *cr,
index ae6cd79e6bb8ba31941d5a49d3c8d317f7ec2602..745b8910a0e70e08883423344c20b05b5aa3741e 100644 (file)
@@ -52,11 +52,11 @@ typedef struct _GdkAxisInfo GdkAxisInfo;
 struct _GdkAxisInfo
 {
   GdkAxisUse use;
-  gdouble min_axis;
-  gdouble max_axis;
-  gdouble min_value;
-  gdouble max_value;
-  gdouble resolution;
+  double min_axis;
+  double max_axis;
+  double min_value;
+  double max_value;
+  double resolution;
 };
 
 enum {
@@ -550,7 +550,7 @@ gdk_device_get_property (GObject    *object,
 void
 gdk_device_get_state (GdkDevice       *device,
                       GdkSurface      *surface,
-                      gdouble         *axes,
+                      double          *axes,
                       GdkModifierType *mask)
 {
   g_return_if_fail (GDK_IS_DEVICE (device));
@@ -608,7 +608,7 @@ gdk_device_get_surface_at_position (GdkDevice *device,
                                     double    *win_x,
                                     double    *win_y)
 {
-  gdouble tmp_x, tmp_y;
+  double tmp_x, tmp_y;
   GdkSurface *surface;
 
   g_return_val_if_fail (GDK_IS_DEVICE (device), NULL);
@@ -873,9 +873,9 @@ gdk_device_get_n_axes (GdkDevice *device)
  **/
 gboolean
 gdk_device_get_axis (GdkDevice  *device,
-                     gdouble    *axes,
+                     double     *axes,
                      GdkAxisUse  use,
-                     gdouble    *value)
+                     double     *value)
 {
   int i;
 
@@ -994,9 +994,9 @@ _gdk_device_reset_axes (GdkDevice *device)
 guint
 _gdk_device_add_axis (GdkDevice   *device,
                       GdkAxisUse   use,
-                      gdouble      min_value,
-                      gdouble      max_value,
-                      gdouble      resolution)
+                      double       min_value,
+                      double       max_value,
+                      double       resolution)
 {
   GdkAxisInfo axis_info;
   guint pos;
@@ -1039,9 +1039,9 @@ void
 _gdk_device_get_axis_info (GdkDevice   *device,
                            guint        index_,
                            GdkAxisUse   *use,
-                           gdouble      *min_value,
-                           gdouble      *max_value,
-                           gdouble      *resolution)
+                           double       *min_value,
+                           double       *max_value,
+                           double       *resolution)
 {
   GdkAxisInfo *info;
 
@@ -1078,17 +1078,17 @@ gboolean
 _gdk_device_translate_surface_coord (GdkDevice *device,
                                      GdkSurface *surface,
                                      guint      index_,
-                                     gdouble    value,
-                                     gdouble   *axis_value)
+                                     double     value,
+                                     double    *axis_value)
 {
   GdkAxisInfo axis_info;
   GdkAxisInfo *axis_info_x, *axis_info_y;
-  gdouble device_width, device_height;
-  gdouble x_offset, y_offset;
-  gdouble x_scale, y_scale;
-  gdouble x_min, y_min;
-  gdouble x_resolution, y_resolution;
-  gdouble device_aspect;
+  double device_width, device_height;
+  double x_offset, y_offset;
+  double x_scale, y_scale;
+  double x_min, y_min;
+  double x_resolution, y_resolution;
+  double device_aspect;
   int surface_width, surface_height;
 
   if (index_ >= device->axes->len)
@@ -1179,16 +1179,16 @@ _gdk_device_translate_surface_coord (GdkDevice *device,
 gboolean
 _gdk_device_translate_screen_coord (GdkDevice *device,
                                     GdkSurface *surface,
-                                    gdouble    surface_root_x,
-                                    gdouble    surface_root_y,
-                                    gdouble    screen_width,
-                                    gdouble    screen_height,
+                                    double     surface_root_x,
+                                    double     surface_root_y,
+                                    double     screen_width,
+                                    double     screen_height,
                                     guint      index_,
-                                    gdouble    value,
-                                    gdouble   *axis_value)
+                                    double     value,
+                                    double    *axis_value)
 {
   GdkAxisInfo axis_info;
-  gdouble axis_width, scale, offset;
+  double axis_width, scale, offset;
 
   if (index_ >= device->axes->len)
     return FALSE;
@@ -1229,11 +1229,11 @@ _gdk_device_translate_screen_coord (GdkDevice *device,
 gboolean
 _gdk_device_translate_axis (GdkDevice *device,
                             guint      index_,
-                            gdouble    value,
-                            gdouble   *axis_value)
+                            double     value,
+                            double    *axis_value)
 {
   GdkAxisInfo axis_info;
-  gdouble axis_width, out;
+  double axis_width, out;
 
   if (index_ >= device->axes->len)
     return FALSE;
@@ -1258,8 +1258,8 @@ void
 _gdk_device_query_state (GdkDevice        *device,
                          GdkSurface        *surface,
                          GdkSurface       **child_surface,
-                         gdouble          *win_x,
-                         gdouble          *win_y,
+                         double           *win_x,
+                         double           *win_y,
                          GdkModifierType  *mask)
 {
   GDK_DEVICE_GET_CLASS (device)->query_state (device,
@@ -1272,8 +1272,8 @@ _gdk_device_query_state (GdkDevice        *device,
 
 GdkSurface *
 _gdk_device_surface_at_position (GdkDevice       *device,
-                                 gdouble         *win_x,
-                                 gdouble         *win_y,
+                                 double          *win_x,
+                                 double          *win_y,
                                  GdkModifierType *mask)
 {
   return GDK_DEVICE_GET_CLASS (device)->surface_at_position (device,
index 09286c61193ca629102377f204270055f959b106..7fe2aebb84806d1ebdfb36d14ed1c811022bb0fc 100644 (file)
@@ -116,7 +116,7 @@ GdkAxisUse     gdk_device_get_axis_use  (GdkDevice         *device,
 GDK_AVAILABLE_IN_ALL
 void     gdk_device_get_state    (GdkDevice         *device,
                                   GdkSurface         *surface,
-                                  gdouble           *axes,
+                                  double            *axes,
                                   GdkModifierType   *mask);
 GDK_AVAILABLE_IN_ALL
 GdkSurface * gdk_device_get_surface_at_position (GdkDevice *device,
@@ -127,9 +127,9 @@ GDK_AVAILABLE_IN_ALL
 int      gdk_device_get_n_axes     (GdkDevice       *device);
 GDK_AVAILABLE_IN_ALL
 gboolean gdk_device_get_axis     (GdkDevice         *device,
-                                  gdouble           *axes,
+                                  double            *axes,
                                   GdkAxisUse         use,
-                                  gdouble           *value);
+                                  double            *value);
 GDK_AVAILABLE_IN_ALL
 GdkDisplay * gdk_device_get_display (GdkDevice      *device);
 
index 1bd00c4241704509fc3dd99678aaedc6084aa8a3..07184a3abe136156bb9617496bf793c3c79c309c 100644 (file)
@@ -63,7 +63,7 @@ struct _GdkDeviceClass
 
   void (* get_state)         (GdkDevice       *device,
                               GdkSurface       *surface,
-                              gdouble         *axes,
+                              double          *axes,
                               GdkModifierType *mask);
 
   void (* set_surface_cursor)(GdkDevice *device,
@@ -73,8 +73,8 @@ struct _GdkDeviceClass
   void (* query_state)       (GdkDevice       *device,
                               GdkSurface       *surface,
                               GdkSurface      **child_surface,
-                              gdouble          *win_x,
-                              gdouble          *win_y,
+                              double           *win_x,
+                              double           *win_y,
                               GdkModifierType  *mask);
   GdkGrabStatus (* grab)     (GdkDevice        *device,
                               GdkSurface        *surface,
@@ -98,36 +98,36 @@ void  _gdk_device_set_associated_device (GdkDevice *device,
 void  _gdk_device_reset_axes (GdkDevice   *device);
 guint _gdk_device_add_axis   (GdkDevice   *device,
                               GdkAxisUse   use,
-                              gdouble      min_value,
-                              gdouble      max_value,
-                              gdouble      resolution);
+                              double       min_value,
+                              double       max_value,
+                              double       resolution);
 void _gdk_device_get_axis_info (GdkDevice  *device,
                                 guint       index,
                                 GdkAxisUse *use,
-                                gdouble    *min_value,
-                                gdouble    *max_value,
-                                gdouble    *resolution);
+                                double     *min_value,
+                                double     *max_value,
+                                double     *resolution);
 
 gboolean   _gdk_device_translate_surface_coord (GdkDevice *device,
                                                 GdkSurface *surface,
                                                 guint      index,
-                                                gdouble    value,
-                                                gdouble   *axis_value);
+                                                double     value,
+                                                double    *axis_value);
 
 gboolean   _gdk_device_translate_screen_coord (GdkDevice *device,
                                                GdkSurface *surface,
-                                               gdouble    surface_root_x,
-                                               gdouble    surface_root_y,
-                                               gdouble    screen_width,
-                                               gdouble    screen_height,
+                                               double     surface_root_x,
+                                               double     surface_root_y,
+                                               double     screen_width,
+                                               double     screen_height,
                                                guint      index,
-                                               gdouble    value,
-                                               gdouble   *axis_value);
+                                               double     value,
+                                               double    *axis_value);
 
 gboolean   _gdk_device_translate_axis         (GdkDevice *device,
                                                guint      index,
-                                               gdouble    value,
-                                               gdouble   *axis_value);
+                                               double     value,
+                                               double    *axis_value);
 
 GdkTimeCoord ** _gdk_device_allocate_history  (GdkDevice *device,
                                                int        n_events);
@@ -140,12 +140,12 @@ void    _gdk_device_remove_physical_device      (GdkDevice *device,
 void _gdk_device_query_state                  (GdkDevice        *device,
                                                GdkSurface        *surface,
                                                GdkSurface       **child_surface,
-                                               gdouble          *win_x,
-                                               gdouble          *win_y,
+                                               double           *win_x,
+                                               double           *win_y,
                                                GdkModifierType  *mask);
 GdkSurface * _gdk_device_surface_at_position  (GdkDevice        *device,
-                                               gdouble          *win_x,
-                                               gdouble          *win_y,
+                                               double           *win_x,
+                                               double           *win_y,
                                                GdkModifierType  *mask);
 
 void  gdk_device_set_seat  (GdkDevice *device,
index 5651bd13009b2745b7bc5e715832c409a9ecacaf..92f1de8a187f3544a68d3b420b61975779b71ee7 100644 (file)
@@ -584,7 +584,7 @@ get_current_toplevel (GdkDisplay      *display,
                      GdkModifierType *state_out)
 {
   GdkSurface *pointer_surface;
-  gdouble x, y;
+  double x, y;
   GdkModifierType state;
 
   pointer_surface = _gdk_device_surface_at_position (device, &x, &y, &state);
index 2ddc6d81cf548e8d3a11cd0ad1765b0ed34e03bd..13decb82bee8fe9626bce69013951d7609961378 100644 (file)
@@ -62,7 +62,7 @@ typedef struct
 typedef struct
 {
   GdkSurface *surface_under_pointer;   /* surface that last got a normal enter event */
-  gdouble toplevel_x, toplevel_y;
+  double toplevel_x, toplevel_y;
   guint32 state;
   guint32 button;
   GdkDevice *last_physical_device;
index 2248b942084c1b919dc31317d5d99d5501bcde75..8131d54d5960e219e17c3e783c200d9191a00309 100644 (file)
@@ -993,12 +993,12 @@ gdk_event_triggers_context_menu (GdkEvent *event)
 static gboolean
 gdk_events_get_axis_distances (GdkEvent *event1,
                                GdkEvent *event2,
-                               gdouble  *x_distance,
-                               gdouble  *y_distance,
-                               gdouble  *distance)
+                               double   *x_distance,
+                               double   *y_distance,
+                               double   *distance)
 {
-  gdouble x1, x2, y1, y2;
-  gdouble xd, yd;
+  double x1, x2, y1, y2;
+  double xd, yd;
 
   if (!gdk_event_get_position (event1, &x1, &y1) ||
       !gdk_event_get_position (event2, &x2, &y2))
@@ -1033,7 +1033,7 @@ gdk_events_get_axis_distances (GdkEvent *event1,
 gboolean
 gdk_events_get_distance (GdkEvent *event1,
                          GdkEvent *event2,
-                         gdouble  *distance)
+                         double   *distance)
 {
   return gdk_events_get_axis_distances (event1, event2,
                                         NULL, NULL,
@@ -1056,9 +1056,9 @@ gdk_events_get_distance (GdkEvent *event1,
 gboolean
 gdk_events_get_angle (GdkEvent *event1,
                       GdkEvent *event2,
-                      gdouble  *angle)
+                      double   *angle)
 {
-  gdouble x_distance, y_distance, distance;
+  double x_distance, y_distance, distance;
 
   if (!gdk_events_get_axis_distances (event1, event2,
                                       &x_distance, &y_distance,
@@ -1097,10 +1097,10 @@ gdk_events_get_angle (GdkEvent *event1,
 gboolean
 gdk_events_get_center (GdkEvent *event1,
                        GdkEvent *event2,
-                       gdouble  *x,
-                       gdouble  *y)
+                       double   *x,
+                       double   *y)
 {
-  gdouble x1, x2, y1, y2;
+  double x1, x2, y1, y2;
 
   if (!gdk_event_get_position (event1, &x1, &y1) ||
       !gdk_event_get_position (event2, &x2, &y2))
index a4d85365fdf604d8a3ee4e67ad77f134b3443fe1..0a70e407d17e47804680c4f207267714eac2d6dd 100644 (file)
@@ -188,8 +188,8 @@ void _gdk_synthesize_crossing_events (GdkDisplay                 *display,
                                       GdkDevice                  *device,
                                       GdkDevice                  *source_device,
                                       GdkCrossingMode             mode,
-                                      gdouble                     toplevel_x,
-                                      gdouble                     toplevel_y,
+                                      double                      toplevel_x,
+                                      double                      toplevel_y,
                                       GdkModifierType             mask,
                                       guint32                     time_,
                                       GdkEvent                   *event_in_queue,
@@ -331,8 +331,8 @@ struct _GdkGeometry
   int base_height;
   int width_inc;
   int height_inc;
-  gdouble min_aspect;
-  gdouble max_aspect;
+  double min_aspect;
+  double max_aspect;
   GdkGravity win_gravity;
 };
 
index 80c43495723cd93ee74c3c3e46c11f3a1e4fc6a9..20940db9d33c28455f7d14abcdfba53f5d2570b9 100644 (file)
@@ -132,7 +132,7 @@ gdk_rgba_is_opaque (const GdkRGBA *rgba)
 static gboolean
 parse_rgb_value (const char   *str,
                  char        **endp,
-                 gdouble      *number)
+                 double       *number)
 {
   const char *p;
 
@@ -186,7 +186,7 @@ gdk_rgba_parse (GdkRGBA     *rgba,
                 const char *spec)
 {
   gboolean has_alpha;
-  gdouble r, g, b, a;
+  double r, g, b, a;
   char *str = (char *) spec;
   char *p;
 
index eb2776b16489724e32c8038503b72711b6ddc150..6b58c1f027205de9fc12308f185909ebe877842a 100644 (file)
@@ -1705,7 +1705,7 @@ gdk_surface_get_device_position (GdkSurface       *surface,
                                  double          *y,
                                  GdkModifierType *mask)
 {
-  gdouble tmp_x, tmp_y;
+  double tmp_x, tmp_y;
   GdkModifierType tmp_mask;
 
   g_return_if_fail (GDK_IS_SURFACE (surface));
index b3a8457a58b6b2312adaa53780f572c5c173b0ca..5d750bfe2e1f1fde56ef82b7ba6cc9785ae681df 100644 (file)
@@ -125,8 +125,8 @@ struct _GdkSurfaceClass
                                          int             *root_y);
   gboolean     (* get_device_state)     (GdkSurface       *surface,
                                          GdkDevice       *device,
-                                         gdouble         *x,
-                                         gdouble         *y,
+                                         double          *x,
+                                         double          *y,
                                          GdkModifierType *mask);
 
   void         (* set_input_region)     (GdkSurface      *surface,
index 3b77c7a7d08a50dd16fc20172591efaf96d9c3ec..8dbbe1ac61668b82999eb0a0e10d410152774533 100644 (file)
@@ -65,8 +65,8 @@ gdk_macos_device_set_surface_cursor (GdkDevice  *device,
 
 static GdkSurface *
 gdk_macos_device_surface_at_position (GdkDevice       *device,
-                                      gdouble         *win_x,
-                                      gdouble         *win_y,
+                                      double          *win_x,
+                                      double          *win_y,
                                       GdkModifierType *state)
 {
   GdkMacosDisplay *display;
@@ -129,10 +129,10 @@ gdk_macos_device_ungrab (GdkDevice *device,
 static void
 gdk_macos_device_get_state (GdkDevice       *device,
                             GdkSurface      *surface,
-                            gdouble         *axes,
+                            double          *axes,
                             GdkModifierType *mask)
 {
-  gdouble x_pos, y_pos;
+  double x_pos, y_pos;
 
   g_assert (GDK_IS_MACOS_DEVICE (device));
   g_assert (GDK_IS_MACOS_SURFACE (surface));
@@ -150,8 +150,8 @@ static void
 gdk_macos_device_query_state (GdkDevice        *device,
                               GdkSurface       *surface,
                               GdkSurface      **child_surface,
-                              gdouble          *win_x,
-                              gdouble          *win_y,
+                              double           *win_x,
+                              double           *win_y,
                               GdkModifierType  *mask)
 {
   GdkDisplay *display;
index 8e8645998750f35fa3573bf14a89a01efa83fb2d..799031e3eff197dcd364875f3e090b92840bc9b0 100644 (file)
@@ -433,7 +433,7 @@ fill_pinch_event (GdkMacosDisplay *display,
   } last_state = FP_STATE_IDLE;
   GdkSeat *seat;
   GdkTouchpadGesturePhase phase;
-  gdouble angle_delta = 0.0;
+  double angle_delta = 0.0;
 
   g_assert (GDK_IS_MACOS_DISPLAY (display));
   g_assert (GDK_IS_MACOS_SURFACE (surface));
@@ -590,8 +590,8 @@ fill_scroll_event (GdkMacosDisplay *self,
   GdkDevice *pointer;
   GdkEvent *ret = NULL;
   GdkSeat *seat;
-  gdouble dx;
-  gdouble dy;
+  double dx;
+  double dy;
 
   g_assert (GDK_IS_MACOS_SURFACE (surface));
   g_assert (nsevent != NULL);
@@ -606,8 +606,8 @@ fill_scroll_event (GdkMacosDisplay *self,
 
   if ([nsevent hasPreciseScrollingDeltas])
     {
-      gdouble sx;
-      gdouble sy;
+      double sx;
+      double sy;
 
       /*
        * TODO: We probably need another event type for the
index 7cc70d921e1f0b31f5570e38f30cfc0c9153c153..32c4a4ac74e4749f586cd8934f8948b417e4ec53 100644 (file)
@@ -305,8 +305,8 @@ gdk_drag_get_current_actions (GdkModifierType  state,
 
 static void
 gdk_drag_update (GdkDrag         *drag,
-                 gdouble          x_root,
-                 gdouble          y_root,
+                 double           x_root,
+                 double           y_root,
                  GdkModifierType  mods,
                  guint32          evtime)
 {
index a5bc4098b97b5af009095a23eff061e24927945b..1c0cdc12e9954e7b038c692b2534f375e9d960c1 100644 (file)
@@ -230,8 +230,8 @@ gdk_macos_surface_get_root_coords (GdkSurface *surface,
 static gboolean
 gdk_macos_surface_get_device_state (GdkSurface      *surface,
                                     GdkDevice       *device,
-                                    gdouble         *x,
-                                    gdouble         *y,
+                                    double          *x,
+                                    double          *y,
                                     GdkModifierType *mask)
 {
   GdkDisplay *display;
index e9fc839e831f7bdce4728ad228e64d72b8386a82..0715bdeea54b7654a1006d2f5d50a764218e1f2a 100644 (file)
@@ -73,8 +73,8 @@ typedef struct _GdkWaylandTabletPadData GdkWaylandTabletPadData;
 struct _GdkWaylandTouchData
 {
   uint32_t id;
-  gdouble x;
-  gdouble y;
+  double x;
+  double y;
   GdkSurface *surface;
   uint32_t touch_down_serial;
   guint initial_touch : 1;
@@ -85,7 +85,7 @@ struct _GdkWaylandPointerFrameData
   GdkEvent *event;
 
   /* Specific to the scroll event */
-  gdouble delta_x, delta_y;
+  double delta_x, delta_y;
   int32_t discrete_x, discrete_y;
   gint8 is_scroll_stop;
   enum wl_pointer_axis_source source;
@@ -147,7 +147,7 @@ struct _GdkWaylandTabletPadGroupData
   struct {
     guint source;
     gboolean is_stop;
-    gdouble value;
+    double value;
   } axis_tmp_info;
 };
 
@@ -186,7 +186,7 @@ struct _GdkWaylandTabletData
   GdkWaylandTabletToolData *current_tool;
 
   int axis_indices[GDK_AXIS_LAST];
-  gdouble *axes;
+  double *axes;
 };
 
 struct _GdkWaylandSeat
@@ -253,7 +253,7 @@ struct _GdkWaylandSeat
 
   /* Some tracking on gesture events */
   guint gesture_n_fingers;
-  gdouble gesture_scale;
+  double gesture_scale;
 
   GdkCursor *grab_cursor;
 };
@@ -310,10 +310,10 @@ static void deliver_key_event (GdkWaylandSeat       *seat,
 static void
 gdk_wayland_device_get_state (GdkDevice       *device,
                               GdkSurface       *surface,
-                              gdouble         *axes,
+                              double          *axes,
                               GdkModifierType *mask)
 {
-  gdouble x, y;
+  double x, y;
 
   gdk_surface_get_device_position (surface, device, &x, &y, mask);
 
@@ -538,8 +538,8 @@ static void
 gdk_wayland_device_query_state (GdkDevice        *device,
                                 GdkSurface       *surface,
                                 GdkSurface      **child_surface,
-                                gdouble          *win_x,
-                                gdouble          *win_y,
+                                double           *win_x,
+                                double           *win_y,
                                 GdkModifierType  *mask)
 {
   GdkWaylandPointerData *pointer;
@@ -788,8 +788,8 @@ gdk_wayland_device_ungrab (GdkDevice *device,
 
 static GdkSurface *
 gdk_wayland_device_surface_at_position (GdkDevice       *device,
-                                        gdouble         *win_x,
-                                        gdouble         *win_y,
+                                        double          *win_x,
+                                        double          *win_y,
                                         GdkModifierType *mask)
 {
   GdkWaylandPointerData *pointer;
@@ -1357,8 +1357,8 @@ flush_discrete_scroll_event (GdkWaylandSeat     *seat,
 
 static void
 flush_smooth_scroll_event (GdkWaylandSeat *seat,
-                           gdouble         delta_x,
-                           gdouble         delta_y,
+                           double          delta_x,
+                           double          delta_y,
                            gboolean        is_stop)
 {
   GdkEvent *event;
@@ -2543,8 +2543,8 @@ emit_gesture_swipe_event (GdkWaylandSeat          *seat,
                           GdkTouchpadGesturePhase  phase,
                           guint32                  _time,
                           guint32                  n_fingers,
-                          gdouble                  dx,
-                          gdouble                  dy)
+                          double                   dx,
+                          double                   dy)
 {
   GdkEvent *event;
 
@@ -2638,10 +2638,10 @@ emit_gesture_pinch_event (GdkWaylandSeat          *seat,
                           GdkTouchpadGesturePhase  phase,
                           guint32                  _time,
                           guint                    n_fingers,
-                          gdouble                  dx,
-                          gdouble                  dy,
-                          gdouble                  scale,
-                          gdouble                  angle_delta)
+                          double                   dx,
+                          double                   dy,
+                          double                   scale,
+                          double                   angle_delta)
 {
   GdkEvent *event;
 
@@ -3393,7 +3393,7 @@ gdk_wayland_device_tablet_clone_tool_axes (GdkWaylandTabletData *tablet,
     g_free (tablet->axes);
 
   tablet->axes =
-    g_new0 (gdouble, gdk_device_get_n_axes (tablet->stylus_device));
+    g_new0 (double, gdk_device_get_n_axes (tablet->stylus_device));
 
   g_object_thaw_notify (G_OBJECT (tablet->stylus_device));
 }
@@ -3402,7 +3402,7 @@ static void
 gdk_wayland_mimic_device_axes (GdkDevice *logical,
                                GdkDevice *physical)
 {
-  gdouble axis_min, axis_max, axis_resolution;
+  double axis_min, axis_max, axis_resolution;
   GdkAxisUse axis_use;
   int axis_count;
   int i;
@@ -3510,7 +3510,7 @@ static double *
 tablet_copy_axes (GdkWaylandTabletData *tablet)
 {
   return g_memdup (tablet->axes,
-                   sizeof (gdouble) * gdk_device_get_n_axes (tablet->stylus_device));
+                   sizeof (double) * gdk_device_get_n_axes (tablet->stylus_device));
 }
 
 static void
@@ -3917,7 +3917,7 @@ tablet_pad_strip_handle_position (void                           *data,
             g_message ("tablet pad strip handle position, strip = %p position = %d",
                        wp_tablet_pad_strip, position));
 
-  group->axis_tmp_info.value = (gdouble) position / 65535;
+  group->axis_tmp_info.value = (double) position / 65535;
 }
 
 static void
index d0e6298e5659c33394cc7179390b95b15beef1bd..03a00a14fbcaf92eed2f393056e24b6b65beb915 100644 (file)
@@ -1445,11 +1445,11 @@ get_order (const char *s)
   return 0;
 }
 
-static gdouble
+static double
 get_dpi_from_gsettings (GdkWaylandDisplay *display_wayland)
 {
   GSettings *settings;
-  gdouble factor;
+  double factor;
 
   settings = g_hash_table_lookup (display_wayland->settings,
                                   "org.gnome.desktop.interface");
index b6e60a40fe86de35e931dac32a26d4056f2ff934..2883b619470007e0309c9a4208e73e383f825e5f 100644 (file)
@@ -3105,8 +3105,8 @@ gdk_wayland_surface_get_root_coords (GdkSurface *surface,
 static gboolean
 gdk_wayland_surface_get_device_state (GdkSurface       *surface,
                                       GdkDevice        *device,
-                                      gdouble          *x,
-                                      gdouble          *y,
+                                      double           *x,
+                                      double           *y,
                                       GdkModifierType  *mask)
 {
   gboolean return_val;
index 4a7fac2bd2731e5adae798df8d59bb5be036c418..4de03fec4290b7972f8bb08ccca1d84ebf4bcbf3 100644 (file)
@@ -2477,7 +2477,7 @@ transmute_cf_dib_to_image_bmp (const guchar    *data,
     {
       if (p[3] != 0)
         {
-          gdouble inverse_alpha = 255./p[3];
+          double inverse_alpha = 255./p[3];
 
           p[0] = p[0] * inverse_alpha + 0.5;
           p[1] = p[1] * inverse_alpha + 0.5;
index 9bfdd2c443ebe68150848e0eaecf9a60c4d84730..a7a6464d75a7d594374729c084d0a204d0a54a02 100644 (file)
@@ -1003,8 +1003,8 @@ _gdk_win32_display_update_cursors (GdkWin32Display *display)
 
 GdkPixbuf *
 gdk_win32_icon_to_pixbuf_libgtk_only (HICON hicon,
-                                      gdouble *x_hot,
-                                      gdouble *y_hot)
+                                      double *x_hot,
+                                      double *y_hot)
 {
   GdkPixbuf *pixbuf = NULL;
   ICONINFO ii;
index c6460c5f22358c966fdb59fea8669678cd25ae13..c63bb7fa9a6b295cadac98e996cb76b5f63d45e0 100644 (file)
@@ -37,7 +37,7 @@ _gdk_device_virtual_set_active (GdkDevice *device,
   GdkDeviceVirtual *virtual = GDK_DEVICE_VIRTUAL (device);
   int n_axes, i;
   GdkAxisUse use;
-  gdouble min_value, max_value, resolution;
+  double min_value, max_value, resolution;
 
   if (virtual->active_device == new_active)
     return;
@@ -62,7 +62,7 @@ _gdk_device_virtual_set_active (GdkDevice *device,
 static void
 gdk_device_virtual_get_state (GdkDevice       *device,
                              GdkSurface       *window,
-                             gdouble         *axes,
+                             double          *axes,
                              GdkModifierType *mask)
 {
   GdkDeviceVirtual *virtual = GDK_DEVICE_VIRTUAL (device);
@@ -100,8 +100,8 @@ static void
 gdk_device_virtual_query_state (GdkDevice        *device,
                                GdkSurface        *window,
                                GdkSurface       **child_window,
-                               gdouble          *win_x,
-                               gdouble          *win_y,
+                               double           *win_x,
+                               double           *win_y,
                                GdkModifierType  *mask)
 {
   GdkDeviceVirtual *virtual = GDK_DEVICE_VIRTUAL (device);
index 0f836109523681317c6b2487ce334aec8bea97a2..67b16bd51f9701f3666a620c253a59034eee9f95 100644 (file)
@@ -32,7 +32,7 @@ G_DEFINE_TYPE (GdkDeviceWin32, gdk_device_win32, GDK_TYPE_DEVICE)
 static void
 gdk_device_win32_get_state (GdkDevice       *device,
                             GdkSurface       *window,
-                            gdouble         *axes,
+                            double          *axes,
                             GdkModifierType *mask)
 {
   double x, y;
@@ -166,8 +166,8 @@ screen_to_client (HWND hwnd, POINT screen_pt, POINT *client_pt)
 
 GdkSurface *
 _gdk_device_win32_surface_at_position (GdkDevice       *device,
-                                       gdouble         *win_x,
-                                       gdouble         *win_y,
+                                       double          *win_x,
+                                       double          *win_y,
                                        GdkModifierType *mask)
 {
   GdkSurface *window = NULL;
index b59d775f9906a2ab2dc8f7285735fb6d42cfdf96..25594124260daedd331dad844cf74767c26448e1 100644 (file)
@@ -45,8 +45,8 @@ struct _GdkDeviceWin32Class
 GType gdk_device_win32_get_type (void) G_GNUC_CONST;
 
 GdkSurface *_gdk_device_win32_surface_at_position (GdkDevice       *device,
-                                                   gdouble         *win_x,
-                                                   gdouble         *win_y,
+                                                   double          *win_x,
+                                                   double          *win_y,
                                                    GdkModifierType *mask);
 
 G_END_DECLS
index 124fcef2e7ab2b75a8a1fb4031d15003abbac36c..04acb571fd65bff3561b0ef9e9c74b49bc0ff67d 100644 (file)
@@ -57,7 +57,7 @@ get_current_mask (void)
 static void
 gdk_device_wintab_get_state (GdkDevice       *device,
                              GdkSurface       *window,
-                             gdouble         *axes,
+                             double          *axes,
                              GdkModifierType *mask)
 {
   GdkDeviceWintab *device_wintab;
@@ -177,8 +177,8 @@ gdk_device_wintab_ungrab (GdkDevice *device,
 
 static GdkSurface *
 gdk_device_wintab_surface_at_position (GdkDevice       *device,
-                                       gdouble         *win_x,
-                                       gdouble         *win_y,
+                                       double          *win_x,
+                                       double          *win_y,
                                        GdkModifierType *mask)
 {
   return NULL;
@@ -187,14 +187,14 @@ gdk_device_wintab_surface_at_position (GdkDevice       *device,
 void
 _gdk_device_wintab_translate_axes (GdkDeviceWintab *device_wintab,
                                    GdkSurface       *window,
-                                   gdouble         *axes,
-                                   gdouble         *x,
-                                   gdouble         *y)
+                                   double          *axes,
+                                   double          *x,
+                                   double          *y)
 {
   GdkDevice *device;
   GdkSurface *impl_surface;
   int root_x, root_y;
-  gdouble temp_x, temp_y;
+  double temp_x, temp_y;
   int i;
 
   device = GDK_DEVICE (device_wintab);
index 2679d73b806dc51a7b7feefcc094d4e5ca5e1ea8..088a84e7f4c35cfee294849d026ac5b4b18bf45a 100644 (file)
@@ -62,9 +62,9 @@ GType gdk_device_wintab_get_type (void) G_GNUC_CONST;
 
 void         _gdk_device_wintab_translate_axes (GdkDeviceWintab *device,
                                                 GdkSurface       *window,
-                                                gdouble         *axes,
-                                                gdouble         *x,
-                                                gdouble         *y);
+                                                double          *axes,
+                                                double          *x,
+                                                double          *y);
 
 G_END_DECLS
 
index df456c29fd96e183966a1c8e86e0d3b912334120..fcdf5b13dababf9f97f2de7f8732935cba2148b3 100644 (file)
@@ -1044,7 +1044,7 @@ gdk_input_other_event (GdkDisplay *display,
       if (event_type == GDK_BUTTON_PRESS ||
           event_type == GDK_BUTTON_RELEASE)
         {
-          axes = g_new (gdouble, num_axes);
+          axes = g_new (double, num_axes);
 
           _gdk_device_wintab_translate_axes (source_device,
                                              window,
@@ -1080,7 +1080,7 @@ gdk_input_other_event (GdkDisplay *display,
         }
       else
         {
-          axes = g_new (gdouble, num_axes);
+          axes = g_new (double, num_axes);
           _gdk_device_wintab_translate_axes (source_device,
                                              window,
                                              axes,
index 8d6caa9ae3b172d4174b3e93c6922dca3c59054b..4720804de6065bbb4a163eebe783f24ce1edaaa2 100644 (file)
@@ -2307,8 +2307,8 @@ gdk_win32_drag_drop_performed (GdkDrag *drag,
 
 static void
 gdk_local_drag_update (GdkDrag *drag,
-                       gdouble  x_root,
-                       gdouble  y_root,
+                       double   x_root,
+                       double   y_root,
                        DWORD    grfKeyState,
                        guint32  evtime)
 {
index a2ff0d952ea6720f8552bc3a889b9a5263565dc2..cd7fea354c56fd4e2c725142be9aedc35fd36034 100644 (file)
@@ -2755,9 +2755,9 @@ gdk_event_translate (MSG *msg,
       delta_x = delta_y = 0.0;
 
       if (msg->message == WM_MOUSEWHEEL)
-        delta_y = (double) GET_WHEEL_DELTA_WPARAM (msg->wParam) / (gdouble) WHEEL_DELTA;
+        delta_y = (double) GET_WHEEL_DELTA_WPARAM (msg->wParam) / (double) WHEEL_DELTA;
       else if (msg->message == WM_MOUSEHWHEEL)
-        delta_x = (double) GET_WHEEL_DELTA_WPARAM (msg->wParam) / (gdouble) WHEEL_DELTA;
+        delta_x = (double) GET_WHEEL_DELTA_WPARAM (msg->wParam) / (double) WHEEL_DELTA;
       /* Positive delta scrolls up, not down,
          see API documentation for WM_MOUSEWHEEL message.
        */
@@ -3291,7 +3291,7 @@ gdk_event_translate (MSG *msg,
          RECT decorated_rect;
          RECT undecorated_drag;
          int decoration_width, decoration_height;
-         gdouble drag_aspect;
+         double drag_aspect;
          int drag_width, drag_height, new_width, new_height;
 
          GetClientRect (GDK_SURFACE_HWND (window), &rect);
@@ -3313,7 +3313,7 @@ gdk_event_translate (MSG *msg,
          drag_width = undecorated_drag.right - undecorated_drag.left;
          drag_height = undecorated_drag.bottom - undecorated_drag.top;
 
-         drag_aspect = (gdouble) drag_width / drag_height;
+         drag_aspect = (double) drag_width / drag_height;
 
          GDK_NOTE (EVENTS, g_print (" (ASPECT:%g--%g curr: %g)",
                                     impl->hints.min_aspect, impl->hints.max_aspect, drag_aspect));
index 06af6e8303453a0b577c1204c0c350d9fffd9d95..ad967541872e69864f4f48b8cec6751d14c55fff 100644 (file)
@@ -249,8 +249,8 @@ gdk_win32_impl_frame_clock_after_paint (GdkFrameClock *clock,
 
           if (SUCCEEDED (hr))
             {
-              timings->refresh_interval = timing_info.qpcRefreshPeriod * (gdouble)G_USEC_PER_SEC / tick_frequency.QuadPart;
-              timings->presentation_time = timing_info.qpcCompose * (gdouble)G_USEC_PER_SEC / tick_frequency.QuadPart;
+              timings->refresh_interval = timing_info.qpcRefreshPeriod * (double)G_USEC_PER_SEC / tick_frequency.QuadPart;
+              timings->presentation_time = timing_info.qpcCompose * (double)G_USEC_PER_SEC / tick_frequency.QuadPart;
             }
         }
 
@@ -1804,8 +1804,8 @@ gdk_win32_surface_get_root_coords (GdkSurface *window,
 static gboolean
 gdk_surface_win32_get_device_state (GdkSurface       *window,
                                    GdkDevice       *device,
-                                   gdouble         *x,
-                                   gdouble         *y,
+                                   double          *x,
+                                   double          *y,
                                    GdkModifierType *mask)
 {
   GdkSurface *child;
@@ -2249,9 +2249,9 @@ unsnap (GdkSurface  *window,
       /* If the window fits into new work area without resizing it,
        * place it into new work area without resizing it.
        */
-      gdouble left, right, up, down, hratio, vratio;
-      gdouble hscale, vscale;
-      gdouble new_left, new_up;
+      double left, right, up, down, hratio, vratio;
+      double hscale, vscale;
+      double new_left, new_up;
 
       left = impl->snap_stash->x;
       right = 1.0 - (impl->snap_stash->x + impl->snap_stash->width);
@@ -2265,7 +2265,7 @@ unsnap (GdkSurface  *window,
           hscale = hratio / (1.0 + hratio);
         }
 
-      new_left = (gdouble) (rect.width - impl->snap_stash_int->width) * hscale;
+      new_left = (double) (rect.width - impl->snap_stash_int->width) * hscale;
 
       vscale = 1.0;
 
@@ -2275,7 +2275,7 @@ unsnap (GdkSurface  *window,
           vscale = vratio / (1.0 + vratio);
         }
 
-      new_up = (gdouble) (rect.height - impl->snap_stash_int->height) * vscale;
+      new_up = (double) (rect.height - impl->snap_stash_int->height) * vscale;
 
       rect.x = round (rect.x + new_left);
       rect.y = round (rect.y + new_up);
@@ -2360,10 +2360,10 @@ stash_window (GdkSurface          *window,
   wwidth = (hmonitor_info.rcWork.right - hmonitor_info.rcWork.left) / impl->surface_scale;
   wheight = (hmonitor_info.rcWork.bottom - hmonitor_info.rcWork.top) / impl->surface_scale;
 
-  impl->snap_stash->x = (gdouble) (x) / (gdouble) (wwidth);
-  impl->snap_stash->y = (gdouble) (y) / (gdouble) (wheight);
-  impl->snap_stash->width = (gdouble) width / (gdouble) (wwidth);
-  impl->snap_stash->height = (gdouble) height / (gdouble) (wheight);
+  impl->snap_stash->x = (double) (x) / (double) (wwidth);
+  impl->snap_stash->y = (double) (y) / (double) (wheight);
+  impl->snap_stash->width = (double) width / (double) (wwidth);
+  impl->snap_stash->height = (double) height / (double) (wheight);
 
   impl->snap_stash_int->x = x;
   impl->snap_stash_int->y = y;
@@ -2730,7 +2730,7 @@ static void
 adjust_indicator_rectangle (GdkRectangle *rect,
                             gboolean      inward)
 {
-  gdouble inverter;
+  double inverter;
   const int gap = AEROSNAP_INDICATOR_EDGE_GAP;
 #if defined(MORE_AEROSNAP_DEBUGGING)
   GdkRectangle cache = *rect;
@@ -2759,12 +2759,12 @@ rounded_rectangle (cairo_t  *cr,
                    int       y,
                    int       width,
                    int       height,
-                   gdouble   radius,
-                   gdouble   line_width,
+                   double    radius,
+                   double    line_width,
                    GdkRGBA  *fill,
                    GdkRGBA  *outline)
 {
-  gdouble degrees = M_PI / 180.0;
+  double degrees = M_PI / 180.0;
 
   if (fill == NULL && outline == NULL)
     return;
@@ -2798,8 +2798,8 @@ rounded_rectangle (cairo_t  *cr,
 }
 
 /* Translates linear animation scale into some kind of curve */
-static gdouble
-curve (gdouble val)
+static double
+curve (double val)
 {
   /* TODO: try different curves. For now it's just linear */
   return val;
@@ -2814,10 +2814,10 @@ draw_indicator (GdkW32DragMoveResizeContext *context,
   GdkRGBA fill = {0, 0, 1.0, 0.8};
   GdkRectangle current_rect;
   gint64 current_time = g_get_monotonic_time ();
-  gdouble animation_progress;
+  double animation_progress;
   gboolean last_draw;
-  gdouble line_width;
-  gdouble corner_radius;
+  double line_width;
+  double corner_radius;
   gint64 animation_duration;
   GdkWin32Surface *impl = GDK_WIN32_SURFACE (context->window);
 
@@ -2836,7 +2836,7 @@ draw_indicator (GdkW32DragMoveResizeContext *context,
   if (timestamp != 0)
     current_time = timestamp;
 
-  animation_progress = (gdouble) (current_time - context->indicator_start_time) / animation_duration;
+  animation_progress = (double) (current_time - context->indicator_start_time) / animation_duration;
 
   if (animation_progress > 1.0)
     animation_progress = 1.0;
@@ -2919,7 +2919,7 @@ redraw_indicator (gpointer user_data)
   HDC hdc;
   POINT source_point = { 0, 0 };
   gboolean last_draw;
-  gdouble indicator_opacity;
+  double indicator_opacity;
   GdkWin32Surface *impl;
   gboolean do_source_remove = FALSE;
 
index 84e7dbaee090e0688cbb735eaa2c2bf4868da70d..649e29c869fbb454cacb06ce3bf6e1d4666f583d 100644 (file)
@@ -79,10 +79,10 @@ typedef enum _GdkWin32AeroSnapState GdkWin32AeroSnapState;
 
 struct _GdkRectangleDouble
 {
-  gdouble x;
-  gdouble y;
-  gdouble width;
-  gdouble height;
+  double x;
+  double y;
+  double width;
+  double height;
 };
 
 typedef struct _GdkRectangleDouble GdkRectangleDouble;
@@ -311,7 +311,7 @@ struct _GdkWin32Surface
    * we remember the opacity value here and apply it
    * during UpdateLayredWindow() call, for layered windows.
    */
-  gdouble          layered_opacity;
+  double           layered_opacity;
 
   HDC              hdc;
   int              hdc_count;
index dcd9471dc9e9b32bd651e4e10809f1c722c5a1fb..3582e81572b0557e670199b2390a6efdd1ff0cee 100644 (file)
@@ -90,8 +90,8 @@ GdkSurface *   gdk_win32_surface_lookup_for_display (GdkDisplay *display,
 /* For internal GTK use only */
 GDK_AVAILABLE_IN_ALL
 GdkPixbuf    *gdk_win32_icon_to_pixbuf_libgtk_only (HICON hicon,
-                                                    gdouble *x_hot,
-                                                    gdouble *y_hot);
+                                                    double *x_hot,
+                                                    double *y_hot);
 GDK_AVAILABLE_IN_ALL
 HICON         gdk_win32_pixbuf_to_hicon_libgtk_only (GdkPixbuf *pixbuf);
 GDK_AVAILABLE_IN_ALL
index 01736e6821c0b6a62b464902a4fa49e13e882ec2..62507c1a3b96d4e3328df68006bb17abac2ab962 100644 (file)
@@ -39,8 +39,8 @@ struct _ScrollValuator
   guint n_valuator       : 4;
   guint direction        : 4;
   guint last_value_valid : 1;
-  gdouble last_value;
-  gdouble increment;
+  double last_value;
+  double increment;
 };
 
 struct _GdkX11DeviceXI2
@@ -49,7 +49,7 @@ struct _GdkX11DeviceXI2
 
   int device_id;
   GArray *scroll_valuators;
-  gdouble *last_axes;
+  double *last_axes;
 };
 
 struct _GdkX11DeviceXI2Class
@@ -72,7 +72,7 @@ static void gdk_x11_device_xi2_set_property (GObject      *object,
 
 static void gdk_x11_device_xi2_get_state (GdkDevice       *device,
                                           GdkSurface       *surface,
-                                          gdouble         *axes,
+                                          double          *axes,
                                           GdkModifierType *mask);
 static void gdk_x11_device_xi2_set_surface_cursor (GdkDevice *device,
                                                   GdkSurface *surface,
@@ -80,8 +80,8 @@ static void gdk_x11_device_xi2_set_surface_cursor (GdkDevice *device,
 static void gdk_x11_device_xi2_query_state (GdkDevice        *device,
                                             GdkSurface        *surface,
                                             GdkSurface       **child_surface,
-                                            gdouble          *win_x,
-                                            gdouble          *win_y,
+                                            double           *win_x,
+                                            double           *win_y,
                                             GdkModifierType  *mask);
 
 static GdkGrabStatus gdk_x11_device_xi2_grab   (GdkDevice     *device,
@@ -95,8 +95,8 @@ static void          gdk_x11_device_xi2_ungrab (GdkDevice     *device,
                                                 guint32        time_);
 
 static GdkSurface * gdk_x11_device_xi2_surface_at_position (GdkDevice       *device,
-                                                            gdouble         *win_x,
-                                                            gdouble         *win_y,
+                                                            double          *win_x,
+                                                            double          *win_y,
                                                             GdkModifierType *mask);
 
 
@@ -190,7 +190,7 @@ gdk_x11_device_xi2_set_property (GObject      *object,
 static void
 gdk_x11_device_xi2_get_state (GdkDevice       *device,
                               GdkSurface       *surface,
-                              gdouble         *axes,
+                              double          *axes,
                               GdkModifierType *mask)
 {
   GdkX11DeviceXI2 *device_xi2 = GDK_X11_DEVICE_XI2 (device);
@@ -214,7 +214,7 @@ gdk_x11_device_xi2_get_state (GdkDevice       *device,
         {
           XIAnyClassInfo *class_info = info->classes[i];
           GdkAxisUse use;
-          gdouble value;
+          double value;
 
           if (class_info->type != XIValuatorClass)
             continue;
@@ -285,15 +285,15 @@ static void
 gdk_x11_device_xi2_query_state (GdkDevice        *device,
                                 GdkSurface        *surface,
                                 GdkSurface       **child_surface,
-                                gdouble          *win_x,
-                                gdouble          *win_y,
+                                double           *win_x,
+                                double           *win_y,
                                 GdkModifierType  *mask)
 {
   GdkX11DeviceXI2 *device_xi2 = GDK_X11_DEVICE_XI2 (device);
   GdkDisplay *display;
   GdkX11Screen *default_screen;
   Window xroot_window, xchild_window, xwindow;
-  gdouble xroot_x, xroot_y, xwin_x, xwin_y;
+  double xroot_x, xroot_y, xwin_x, xwin_y;
   XIButtonState button_state;
   XIModifierState mod_state;
   XIGroupState group_state;
@@ -447,8 +447,8 @@ gdk_x11_device_xi2_ungrab (GdkDevice *device,
 
 static GdkSurface *
 gdk_x11_device_xi2_surface_at_position (GdkDevice       *device,
-                                        gdouble         *win_x,
-                                        gdouble         *win_y,
+                                        double          *win_x,
+                                        double          *win_y,
                                         GdkModifierType *mask)
 {
   GdkX11Surface *impl;
@@ -458,7 +458,7 @@ gdk_x11_device_xi2_surface_at_position (GdkDevice       *device,
   Display *xdisplay;
   GdkSurface *surface;
   Window xwindow, root, child, last = None;
-  gdouble xroot_x, xroot_y, xwin_x, xwin_y;
+  double xroot_x, xroot_y, xwin_x, xwin_y;
   XIButtonState button_state = { 0 };
   XIModifierState mod_state;
   XIGroupState group_state;
@@ -744,7 +744,7 @@ void
 _gdk_x11_device_xi2_add_scroll_valuator (GdkX11DeviceXI2    *device,
                                          guint               n_valuator,
                                          GdkScrollDirection  direction,
-                                         gdouble             increment)
+                                         double              increment)
 {
   ScrollValuator scroll;
 
@@ -762,9 +762,9 @@ _gdk_x11_device_xi2_add_scroll_valuator (GdkX11DeviceXI2    *device,
 gboolean
 _gdk_x11_device_xi2_get_scroll_delta (GdkX11DeviceXI2    *device,
                                       guint               n_valuator,
-                                      gdouble             valuator_value,
+                                      double              valuator_value,
                                       GdkScrollDirection *direction_ret,
-                                      gdouble            *delta_ret)
+                                      double             *delta_ret)
 {
   guint i;
 
@@ -835,7 +835,7 @@ _gdk_x11_device_xi2_get_id (GdkX11DeviceXI2 *device)
   return device->device_id;
 }
 
-gdouble
+double
 gdk_x11_device_xi2_get_last_axis_value (GdkX11DeviceXI2 *device,
                                         int              n_axis)
 {
@@ -850,13 +850,13 @@ gdk_x11_device_xi2_get_last_axis_value (GdkX11DeviceXI2 *device,
 
 void
 gdk_x11_device_xi2_store_axes (GdkX11DeviceXI2 *device,
-                               gdouble         *axes,
+                               double          *axes,
                                int              n_axes)
 {
   g_free (device->last_axes);
 
   if (axes && n_axes)
-    device->last_axes = g_memdup (axes, sizeof (gdouble) * n_axes);
+    device->last_axes = g_memdup (axes, sizeof (double) * n_axes);
   else
     device->last_axes = NULL;
 }
index 51cd98a2a553efc9aeff869186fbe5e724ca2bae..67dccb5b87d3d82ab1cf7ca0d553b0f75f702bc5 100644 (file)
@@ -204,9 +204,9 @@ static void
 translate_valuator_class (GdkDisplay          *display,
                           GdkDevice           *device,
                           Atom                 valuator_label,
-                          gdouble              min,
-                          gdouble              max,
-                          gdouble              resolution)
+                          double               min,
+                          double               max,
+                          double               resolution)
 {
   static gboolean initialized = FALSE;
   static Atom label_atoms [GDK_AXIS_LAST] = { 0 };
@@ -1187,25 +1187,25 @@ set_user_time (GdkEvent *event)
     gdk_x11_surface_set_user_time (surface, time);
 }
 
-static gdouble *
+static double *
 translate_axes (GdkDevice       *device,
-                gdouble          x,
-                gdouble          y,
+                double           x,
+                double           y,
                 GdkSurface       *surface,
                 XIValuatorState *valuators)
 {
   guint n_axes, i;
-  gdouble *axes;
-  gdouble *vals;
+  double *axes;
+  double *vals;
 
   n_axes = gdk_device_get_n_axes (device);
-  axes = g_new0 (gdouble, n_axes);
+  axes = g_new0 (double, n_axes);
   vals = valuators->values;
 
   for (i = 0; i < MIN (valuators->mask_len * 8, n_axes); i++)
     {
       GdkAxisUse use;
-      gdouble val;
+      double val;
 
       if (!XIMaskIsSet (valuators->mask, i))
         {
@@ -1313,13 +1313,13 @@ get_event_surface (GdkEventTranslator *translator,
 static gboolean
 scroll_valuators_changed (GdkX11DeviceXI2 *device,
                           XIValuatorState *valuators,
-                          gdouble         *dx,
-                          gdouble         *dy)
+                          double          *dx,
+                          double          *dy)
 {
   gboolean has_scroll_valuators = FALSE;
   GdkScrollDirection direction;
   guint n_axes, i, n_val;
-  gdouble *vals;
+  double *vals;
 
   n_axes = gdk_device_get_n_axes (GDK_DEVICE (device));
   vals = valuators->values;
@@ -1328,7 +1328,7 @@ scroll_valuators_changed (GdkX11DeviceXI2 *device,
 
   for (i = 0; i < MIN (valuators->mask_len * 8, n_axes); i++)
     {
-      gdouble delta;
+      double delta;
 
       if (!XIMaskIsSet (valuators->mask, i))
         continue;
@@ -1704,7 +1704,7 @@ gdk_x11_device_manager_xi2_translate_event (GdkEventTranslator *translator,
     case XI_Motion:
       {
         XIDeviceEvent *xev = (XIDeviceEvent *) ev;
-        gdouble delta_x, delta_y;
+        double delta_x, delta_y;
 
         double x, y;
         double *axes;
index 291a89215611577c25638e2fdceb330ae9a8f7bb..ba119a45b808125b37709493dfbfe60ce9b5e9af 100644 (file)
@@ -2163,8 +2163,8 @@ gdk_drag_get_current_actions (GdkModifierType  state,
 
 static void
 gdk_drag_update (GdkDrag         *drag,
-                 gdouble          x_root,
-                 gdouble          y_root,
+                 double           x_root,
+                 double           y_root,
                  GdkModifierType  mods,
                  guint32          evtime)
 {
index a5d17e232ce6698a7e636cce290affd484d2c2b4..810202614d8655c41b57a8efd80c5875c0c15611 100644 (file)
@@ -130,7 +130,7 @@ create_synth_crossing_event (GdkEventType     evtype,
                              GdkEvent        *real_event)
 {
   GdkEvent *event;
-  gdouble x, y;
+  double x, y;
 
   g_assert (evtype == GDK_ENTER_NOTIFY || evtype == GDK_LEAVE_NOTIFY);
 
index eeae4abbe5c66c79e470d2a10858eb7fe017d036..97155106a508c4ea1bbe4248b2950acdd52f75dc 100644 (file)
@@ -152,19 +152,19 @@ GdkDevice * _gdk_x11_device_manager_xi2_lookup    (GdkX11DeviceManagerXI2 *devic
 void     _gdk_x11_device_xi2_add_scroll_valuator  (GdkX11DeviceXI2    *device,
                                                    guint               n_valuator,
                                                    GdkScrollDirection  direction,
-                                                   gdouble             increment);
+                                                   double              increment);
 gboolean  _gdk_x11_device_xi2_get_scroll_delta    (GdkX11DeviceXI2    *device,
                                                    guint               n_valuator,
-                                                   gdouble             valuator_value,
+                                                   double              valuator_value,
                                                    GdkScrollDirection *direction_ret,
-                                                   gdouble            *delta_ret);
+                                                   double             *delta_ret);
 void     _gdk_device_xi2_reset_scroll_valuators   (GdkX11DeviceXI2    *device);
 
-gdouble  gdk_x11_device_xi2_get_last_axis_value (GdkX11DeviceXI2 *device,
+double   gdk_x11_device_xi2_get_last_axis_value (GdkX11DeviceXI2 *device,
                                                  int              n_axis);
 
 void     gdk_x11_device_xi2_store_axes          (GdkX11DeviceXI2 *device,
-                                                 gdouble         *axes,
+                                                 double          *axes,
                                                  int              n_axes);
 
 gboolean   _gdk_x11_display_supports_cursor_alpha   (GdkDisplay    *display);
index 261b123940a64a3234c3489feadd3c0284c84608..95f340bc703d11ec4a3877bc1268fa864ec2b0fe 100644 (file)
@@ -2292,8 +2292,8 @@ gdk_surface_get_geometry_hints (GdkSurface      *surface,
     {
       *geom_mask |= GDK_HINT_ASPECT;
 
-      geometry->min_aspect = (gdouble) size_hints->min_aspect.x / (gdouble) size_hints->min_aspect.y;
-      geometry->max_aspect = (gdouble) size_hints->max_aspect.x / (gdouble) size_hints->max_aspect.y;
+      geometry->min_aspect = (double) size_hints->min_aspect.x / (double) size_hints->min_aspect.y;
+      geometry->max_aspect = (double) size_hints->max_aspect.x / (double) size_hints->max_aspect.y;
     }
 
   if (size_hints->flags & PWinGravity)
@@ -2711,8 +2711,8 @@ gdk_x11_surface_get_frame_extents (GdkSurface    *surface,
 static gboolean
 gdk_x11_surface_get_device_state (GdkSurface       *surface,
                                  GdkDevice       *device,
-                                 gdouble         *x,
-                                 gdouble         *y,
+                                 double          *x,
+                                 double          *y,
                                  GdkModifierType *mask)
 {
   GdkSurface *child;
@@ -3841,8 +3841,8 @@ get_move_resize_data (GdkDisplay *display,
 
 static void
 check_maximize (MoveResizeData *mv_resize,
-                gdouble         x_root,
-                gdouble         y_root)
+                double          x_root,
+                double          y_root)
 {
   GdkSurfaceState state;
   int y;
@@ -3863,8 +3863,8 @@ check_maximize (MoveResizeData *mv_resize,
 
 static void
 check_unmaximize (MoveResizeData *mv_resize,
-                  gdouble         x_root,
-                  gdouble         y_root)
+                  double          x_root,
+                  double          y_root)
 {
   GdkSurfaceState state;
   int dx, dy;
index 226bbcd9857cfcdad2b342a7d1066f65eabd062d..a3a548227c0f0c4880dd775599fb872ddff00004 100644 (file)
@@ -109,7 +109,7 @@ get_boolean_default (GdkX11Screen *x11_screen,
 static gboolean
 get_double_default (GdkX11Screen *x11_screen,
                    const char *option,
-                   gdouble     *value)
+                   double      *value)
 {
   Display *dpy = GDK_SCREEN_XDISPLAY (x11_screen);
   char     *v, *e;
index 6e9266c70d38aebda6d7134d121f301a02db2599..71d2cf4e7486eb349b6d5f8bb1ec1717d9873322 100644 (file)
@@ -306,8 +306,8 @@ gsk_cairo_blur_start_drawing (cairo_t         *cr,
   double clip_x1, clip_x2, clip_y1, clip_y2, clip_width, clip_height;
   cairo_surface_t *surface;
   cairo_t *blur_cr;
-  gdouble clip_radius;
-  gdouble x_scale, y_scale;
+  double clip_radius;
+  double x_scale, y_scale;
   gboolean blur_x = (blur_flags & GSK_BLUR_X) != 0;
   gboolean blur_y = (blur_flags & GSK_BLUR_Y) != 0;
 
@@ -377,7 +377,7 @@ gsk_cairo_blur_finish_drawing (cairo_t         *cr,
 {
   cairo_t *original_cr;
   cairo_surface_t *surface;
-  gdouble x_scale;
+  double x_scale;
 
   if (!needs_blur (radius, blur_flags))
     return cr;
index 1013972bcf43706b845418202c1a8d9bfb52253c..05430bea8d64d4f1545ce3ca881f3601b30053a1 100644 (file)
@@ -985,7 +985,7 @@ draw_shadow_side (cairo_t               *cr,
                   cairo_rectangle_int_t *drawn_rect)
 {
   GskBlurFlags blur_flags = GSK_BLUR_REPEAT;
-  gdouble clip_radius;
+  double clip_radius;
   int x1, x2, y1, y2;
 
   clip_radius = gsk_cairo_blur_compute_pixels (radius);
index a8054c204d7f9d15dbe92928ee493a2505c1893a..cb25428710869853a87e64657427e9b448b21f0c 100644 (file)
@@ -124,7 +124,7 @@ gtk_level_bar_accessible_set_current_value (AtkValue     *obj,
 
 static void
 gtk_level_bar_accessible_get_value_and_text (AtkValue  *obj,
-                                             gdouble   *value,
+                                             double    *value,
                                              char     **text)
 {
   GtkWidget *widget;
@@ -153,7 +153,7 @@ gtk_level_bar_accessible_get_range (AtkValue *obj)
 
 static void
 gtk_level_bar_accessible_set_value (AtkValue      *obj,
-                                    const gdouble  value)
+                                    const double   value)
 {
   GtkWidget *widget;
   GtkLevelBar *level_bar;
index 475b65b626b9e3d487fe276318ec5b13175aee06..97793626abcb93024e9da6d58e5982b7f31f472b 100644 (file)
@@ -143,7 +143,7 @@ gtk_paned_accessible_set_current_value (AtkValue     *obj,
 
 static void
 gtk_paned_accessible_get_value_and_text (AtkValue  *obj,
-                                         gdouble   *value,
+                                         double    *value,
                                          char     **text)
 {
   GtkWidget *widget;
@@ -175,7 +175,7 @@ gtk_paned_accessible_get_range (AtkValue *obj)
 
 static void
 gtk_paned_accessible_set_value (AtkValue      *obj,
-                                const gdouble  value)
+                                const double   value)
 {
   GtkWidget *widget;
   GtkPaned *paned;
index 517f845184c6eb5152bb4cc7deca2249f845dad3..cf9183130503dc623ba0022d63fccd3b0243c220 100644 (file)
@@ -78,7 +78,7 @@ gtk_progress_bar_accessible_get_minimum_value (AtkValue *obj,
 
 static void
 gtk_progress_bar_accessible_get_value_and_text (AtkValue  *obj,
-                                                gdouble   *value,
+                                                double    *value,
                                                 char     **text)
 {
   GtkWidget *widget;
index 8650f7c452880befe18c170f1d0e23b3319f497d..a0049791434051876596488058bb3a0cf9d80c44 100644 (file)
@@ -152,7 +152,7 @@ gtk_range_accessible_get_maximum_value (AtkValue *obj,
 {
   GtkWidget *widget;
   GtkAdjustment *adjustment;
-  gdouble max;
+  double max;
 
   widget = gtk_accessible_get_widget (GTK_ACCESSIBLE (obj));
   adjustment = gtk_range_get_adjustment (GTK_RANGE (widget));
@@ -223,7 +223,7 @@ gtk_range_accessible_set_current_value (AtkValue     *obj,
 
 static void
 gtk_range_accessible_get_value_and_text (AtkValue  *obj,
-                                         gdouble   *value,
+                                         double    *value,
                                          char     **text)
 {
   GtkWidget *widget;
@@ -243,7 +243,7 @@ gtk_range_accessible_get_range (AtkValue *obj)
 {
   GtkWidget *widget;
   GtkAdjustment *adjustment;
-  gdouble min, max;
+  double min, max;
 
   widget = gtk_accessible_get_widget (GTK_ACCESSIBLE (obj));
   adjustment = gtk_range_get_adjustment (GTK_RANGE (widget));
@@ -262,7 +262,7 @@ gtk_range_accessible_get_range (AtkValue *obj)
 
 static void
 gtk_range_accessible_set_value (AtkValue      *obj,
-                                const gdouble  value)
+                                const double   value)
 {
   GtkWidget *widget;
   GtkAdjustment *adjustment;
@@ -275,7 +275,7 @@ gtk_range_accessible_set_value (AtkValue      *obj,
   gtk_adjustment_set_value (adjustment, value);
 }
 
-static gdouble
+static double
 gtk_range_accessible_get_increment (AtkValue *obj)
 {
   GtkWidget *widget;
index 7c31735a213aa8ee5bdca048d115f333b3c5fe09..e569fc4dcdf3811ce6ab0ea4b0355eb76653360d 100644 (file)
@@ -300,7 +300,7 @@ gtk_scale_button_accessible_set_current_value (AtkValue     *obj,
 
 static void
 gtk_scale_button_accessible_get_value_and_text (AtkValue  *obj,
-                                                gdouble   *value,
+                                                double    *value,
                                                 char     **text)
 {
   GtkWidget *widget;
@@ -333,7 +333,7 @@ gtk_scale_button_accessible_get_range (AtkValue *obj)
 
 static void
 gtk_scale_button_accessible_set_value (AtkValue      *obj,
-                                       const gdouble  value)
+                                       const double   value)
 {
   GtkWidget *widget;
   GtkAdjustment *adjustment;
@@ -346,7 +346,7 @@ gtk_scale_button_accessible_set_value (AtkValue      *obj,
   gtk_adjustment_set_value (adjustment, value);
 }
 
-static gdouble
+static double
 gtk_scale_button_accessible_get_increment (AtkValue *obj)
 {
   GtkWidget *widget;
index 879a1eb1325e0d7e216f3abdd1d72da8326ec9d3..0791b4e9e4f0979de1e9ffd141c52ae9dc6a45fd 100644 (file)
@@ -201,7 +201,7 @@ gtk_spin_button_accessible_set_current_value (AtkValue     *obj,
 
 static void
 gtk_spin_button_accessible_get_value_and_text (AtkValue  *obj,
-                                               gdouble   *value,
+                                               double    *value,
                                                char     **text)
 {
   GtkWidget *widget;
@@ -234,7 +234,7 @@ gtk_spin_button_accessible_get_range (AtkValue *obj)
 
 static void
 gtk_spin_button_accessible_set_value (AtkValue      *obj,
-                                const gdouble  value)
+                                const double   value)
 {
   GtkWidget *widget;
   GtkAdjustment *adjustment;
@@ -247,7 +247,7 @@ gtk_spin_button_accessible_set_value (AtkValue      *obj,
   gtk_adjustment_set_value (adjustment, value);
 }
 
-static gdouble
+static double
 gtk_spin_button_accessible_get_increment (AtkValue *obj)
 {
   GtkWidget *widget;
index 369da981b91116d6b4c059d166f19153a609a19e..7af56d9696fc946df037b218ebcf7c04121083e1 100644 (file)
@@ -377,7 +377,7 @@ create_pango_layout (GtkTextCellAccessible *text)
   gboolean foreground_set, strikethrough_set, strikethrough;
   gboolean scale_set, underline_set, rise_set;
   char *renderer_text;
-  gdouble scale;
+  double scale;
   int rise;
   GtkRendererCellAccessible *gail_renderer;
   GtkCellRendererText *gtk_renderer;
index f6cf38fc483f169b6d5e8c9f66a7fd5690f7a5de..3de00eec924273d6c7dd13fd6392d01ad802923e 100644 (file)
@@ -557,7 +557,7 @@ gtk_text_view_accessible_get_run_attributes (AtkText *text,
   GtkTextIter iter;
   AtkAttributeSet *attrib_set = NULL;
   GSList *tags, *temp_tags;
-  gdouble scale = 1;
+  double scale = 1;
   gboolean val_set = FALSE;
 
   widget = gtk_accessible_get_widget (GTK_ACCESSIBLE (text));
@@ -788,7 +788,7 @@ gtk_text_view_accessible_get_run_attributes (AtkText *text,
       g_object_get (tag, "scale-set", &scale_set, NULL);
       if (scale_set)
         {
-          gdouble font_scale;
+          double font_scale;
           g_object_get (tag, "scale", &font_scale, NULL);
           val_set = TRUE;
           scale *= font_scale;
index 8d9ea390b575ffae54d3f0b280792739eb31f9dc..3f23c87d3423ff1657d634cb9f46dba80043fbe2 100644 (file)
@@ -71,12 +71,12 @@ find_name (const char *name)
 
 static gboolean
 parse_media_size (const char *size,
-                  gdouble     *width_mm, 
-                  gdouble     *height_mm)
+                  double      *width_mm, 
+                  double      *height_mm)
 {
   const char *p;
   char *e;
-  gdouble short_dim, long_dim;
+  double short_dim, long_dim;
 
   p = size;
   
@@ -114,7 +114,7 @@ int
 main (int argc, char *argv[])
 {
   int i, j, offset;
-  gdouble width, height;
+  double width, height;
 
   names = (NameInfo *) malloc (sizeof (NameInfo) * (4 + n_infos + 2 * n_extra));
   n_names = 0;
index 7eadca3d27de48423b83a958679d0d35f21b6d2e..8e22e1397f7d83ed76ab5453d93c5adfdcd3b605 100644 (file)
@@ -71,7 +71,7 @@ g_settings_set_mapping_int (const GValue       *value,
         variant = g_variant_new_handle ((guint) l);
     }
   else if (g_variant_type_equal (expected_type, G_VARIANT_TYPE_DOUBLE))
-    variant = g_variant_new_double ((gdouble) l);
+    variant = g_variant_new_double ((double) l);
 
   return variant;
 }
@@ -81,7 +81,7 @@ g_settings_set_mapping_float (const GValue       *value,
                               const GVariantType *expected_type)
 {
   GVariant *variant = NULL;
-  gdouble d;
+  double d;
   gint64 l;
 
   if (G_VALUE_HOLDS_DOUBLE (value))
@@ -126,7 +126,7 @@ g_settings_set_mapping_float (const GValue       *value,
         variant = g_variant_new_handle ((guint) l);
     }
   else if (g_variant_type_equal (expected_type, G_VARIANT_TYPE_DOUBLE))
-    variant = g_variant_new_double ((gdouble) d);
+    variant = g_variant_new_double ((double) d);
 
   return variant;
 }
@@ -180,7 +180,7 @@ g_settings_set_mapping_unsigned_int (const GValue       *value,
         variant = g_variant_new_handle ((guint) u);
     }
   else if (g_variant_type_equal (expected_type, G_VARIANT_TYPE_DOUBLE))
-    variant = g_variant_new_double ((gdouble) u);
+    variant = g_variant_new_double ((double) u);
 
   return variant;
 }
@@ -237,7 +237,7 @@ g_settings_get_mapping_float (GValue   *value,
                               GVariant *variant)
 {
   const GVariantType *type;
-  gdouble d;
+  double d;
   gint64 l;
 
   type = g_variant_get_type (variant);
index 8f54c9cc944865279a8ee1aa0f945c8e972b3ca7..1e1baee43c49b3d1ecb6f7943f2eb83b43f8bd6f 100644 (file)
@@ -140,7 +140,7 @@ gsk_pango_renderer_draw_trapezoid (PangoRenderer   *renderer,
 {
   GskPangoRenderer *crenderer = (GskPangoRenderer *) (renderer);
   cairo_t *cr;
-  gdouble x, y;
+  double x, y;
 
   cr = gtk_snapshot_append_cairo (crenderer->snapshot, &crenderer->bounds);
 
index 097a7bac1494603b73038e5add5cc8e6e85d774e..d4bf1ca8a1c82756cb3f689e51dfcfdf3a627ec4 100644 (file)
 
 
 struct _GtkAdjustmentPrivate {
-  gdouble lower;
-  gdouble upper;
-  gdouble value;
-  gdouble step_increment;
-  gdouble page_increment;
-  gdouble page_size;
+  double lower;
+  double upper;
+  double value;
+  double step_increment;
+  double page_increment;
+  double page_size;
 
-  gdouble source;
-  gdouble target;
+  double source;
+  double target;
 
   guint duration;
   gint64 start_time;
@@ -294,7 +294,7 @@ gtk_adjustment_set_property (GObject      *object,
                              GParamSpec   *pspec)
 {
   GtkAdjustment *adjustment = GTK_ADJUSTMENT (object);
-  gdouble double_value = g_value_get_double (value);
+  double double_value = g_value_get_double (value);
 
   switch (prop_id)
     {
@@ -373,12 +373,12 @@ gtk_adjustment_dispatch_properties_changed (GObject     *object,
  * Returns: a new #GtkAdjustment
  */
 GtkAdjustment *
-gtk_adjustment_new (gdouble value,
-                   gdouble lower,
-                   gdouble upper,
-                   gdouble step_increment,
-                   gdouble page_increment,
-                   gdouble page_size)
+gtk_adjustment_new (double value,
+                   double lower,
+                   double upper,
+                   double step_increment,
+                   double page_increment,
+                   double page_size)
 {
   return g_object_new (GTK_TYPE_ADJUSTMENT,
                       "lower", lower,
@@ -399,7 +399,7 @@ gtk_adjustment_new (gdouble value,
  *
  * Returns: The current value of the adjustment
  **/
-gdouble
+double
 gtk_adjustment_get_value (GtkAdjustment *adjustment)
 {
   GtkAdjustmentPrivate *priv = gtk_adjustment_get_instance_private (adjustment);
@@ -408,7 +408,7 @@ gtk_adjustment_get_value (GtkAdjustment *adjustment)
   return priv->value;
 }
 
-gdouble
+double
 gtk_adjustment_get_target_value (GtkAdjustment *adjustment)
 {
   GtkAdjustmentPrivate *priv = gtk_adjustment_get_instance_private (adjustment);
@@ -423,7 +423,7 @@ gtk_adjustment_get_target_value (GtkAdjustment *adjustment)
 
 static void
 adjustment_set_value (GtkAdjustment *adjustment,
-                      gdouble        value)
+                      double         value)
 {
   GtkAdjustmentPrivate *priv = gtk_adjustment_get_instance_private (adjustment);
 
@@ -466,10 +466,10 @@ gtk_adjustment_end_updating (GtkAdjustment *adjustment)
 /* From clutter-easing.c, based on Robert Penner's
  * infamous easing equations, MIT license.
  */
-static gdouble
-ease_out_cubic (gdouble t)
+static double
+ease_out_cubic (double t)
 {
-  gdouble p = t - 1;
+  double p = t - 1;
 
   return p * p * p + 1;
 }
@@ -485,9 +485,9 @@ gtk_adjustment_on_frame_clock_update (GdkFrameClock *clock,
 
   if (now < priv->end_time)
     {
-      gdouble t;
+      double t;
 
-      t = (now - priv->start_time) / (gdouble) (priv->end_time - priv->start_time);
+      t = (now - priv->start_time) / (double) (priv->end_time - priv->start_time);
       t = ease_out_cubic (t);
       adjustment_set_value (adjustment, priv->source + t * (priv->target - priv->source));
     }
@@ -500,7 +500,7 @@ gtk_adjustment_on_frame_clock_update (GdkFrameClock *clock,
 
 static void
 gtk_adjustment_set_value_internal (GtkAdjustment *adjustment,
-                                   gdouble        value,
+                                   double         value,
                                    gboolean       animate)
 {
   GtkAdjustmentPrivate *priv = gtk_adjustment_get_instance_private (adjustment);
@@ -543,7 +543,7 @@ gtk_adjustment_set_value_internal (GtkAdjustment *adjustment,
  */
 void
 gtk_adjustment_set_value (GtkAdjustment *adjustment,
-                         gdouble        value)
+                         double         value)
 {
   g_return_if_fail (GTK_IS_ADJUSTMENT (adjustment));
 
@@ -552,7 +552,7 @@ gtk_adjustment_set_value (GtkAdjustment *adjustment,
 
 void
 gtk_adjustment_animate_to_value (GtkAdjustment *adjustment,
-                                gdouble        value)
+                                double         value)
 {
   g_return_if_fail (GTK_IS_ADJUSTMENT (adjustment));
 
@@ -567,7 +567,7 @@ gtk_adjustment_animate_to_value (GtkAdjustment *adjustment,
  *
  * Returns: The current minimum value of the adjustment
  **/
-gdouble
+double
 gtk_adjustment_get_lower (GtkAdjustment *adjustment)
 {
   GtkAdjustmentPrivate *priv = gtk_adjustment_get_instance_private (adjustment);
@@ -598,7 +598,7 @@ gtk_adjustment_get_lower (GtkAdjustment *adjustment)
  **/
 void
 gtk_adjustment_set_lower (GtkAdjustment *adjustment,
-                          gdouble        lower)
+                          double         lower)
 {
   GtkAdjustmentPrivate *priv = gtk_adjustment_get_instance_private (adjustment);
 
@@ -619,7 +619,7 @@ gtk_adjustment_set_lower (GtkAdjustment *adjustment,
  *
  * Returns: The current maximum value of the adjustment
  **/
-gdouble
+double
 gtk_adjustment_get_upper (GtkAdjustment *adjustment)
 {
   GtkAdjustmentPrivate *priv = gtk_adjustment_get_instance_private (adjustment);
@@ -645,7 +645,7 @@ gtk_adjustment_get_upper (GtkAdjustment *adjustment)
  **/
 void
 gtk_adjustment_set_upper (GtkAdjustment *adjustment,
-                          gdouble        upper)
+                          double         upper)
 {
   GtkAdjustmentPrivate *priv = gtk_adjustment_get_instance_private (adjustment);
 
@@ -666,7 +666,7 @@ gtk_adjustment_set_upper (GtkAdjustment *adjustment,
  *
  * Returns: The current step increment of the adjustment.
  **/
-gdouble
+double
 gtk_adjustment_get_step_increment (GtkAdjustment *adjustment)
 {
   GtkAdjustmentPrivate *priv = gtk_adjustment_get_instance_private (adjustment);
@@ -689,7 +689,7 @@ gtk_adjustment_get_step_increment (GtkAdjustment *adjustment)
  **/
 void
 gtk_adjustment_set_step_increment (GtkAdjustment *adjustment,
-                                   gdouble        step_increment)
+                                   double         step_increment)
 {
   GtkAdjustmentPrivate *priv = gtk_adjustment_get_instance_private (adjustment);
 
@@ -710,7 +710,7 @@ gtk_adjustment_set_step_increment (GtkAdjustment *adjustment,
  *
  * Returns: The current page increment of the adjustment
  **/
-gdouble
+double
 gtk_adjustment_get_page_increment (GtkAdjustment *adjustment)
 {
   GtkAdjustmentPrivate *priv = gtk_adjustment_get_instance_private (adjustment);
@@ -733,7 +733,7 @@ gtk_adjustment_get_page_increment (GtkAdjustment *adjustment)
  **/
 void
 gtk_adjustment_set_page_increment (GtkAdjustment *adjustment,
-                                   gdouble        page_increment)
+                                   double         page_increment)
 {
   GtkAdjustmentPrivate *priv = gtk_adjustment_get_instance_private (adjustment);
 
@@ -754,7 +754,7 @@ gtk_adjustment_set_page_increment (GtkAdjustment *adjustment,
  *
  * Returns: The current page size of the adjustment
  **/
-gdouble
+double
 gtk_adjustment_get_page_size (GtkAdjustment *adjustment)
 {
   GtkAdjustmentPrivate *priv = gtk_adjustment_get_instance_private (adjustment);
@@ -777,7 +777,7 @@ gtk_adjustment_get_page_size (GtkAdjustment *adjustment)
  **/
 void
 gtk_adjustment_set_page_size (GtkAdjustment *adjustment,
-                              gdouble        page_size)
+                              double         page_size)
 {
   GtkAdjustmentPrivate *priv = gtk_adjustment_get_instance_private (adjustment);
 
@@ -809,12 +809,12 @@ gtk_adjustment_set_page_size (GtkAdjustment *adjustment,
  **/
 void
 gtk_adjustment_configure (GtkAdjustment *adjustment,
-                          gdouble        value,
-                          gdouble        lower,
-                          gdouble        upper,
-                          gdouble        step_increment,
-                          gdouble        page_increment,
-                          gdouble        page_size)
+                          double         value,
+                          double         lower,
+                          double         upper,
+                          double         step_increment,
+                          double         page_increment,
+                          double         page_size)
 {
   GtkAdjustmentPrivate *priv = gtk_adjustment_get_instance_private (adjustment);
   gboolean value_changed = FALSE;
@@ -867,8 +867,8 @@ gtk_adjustment_configure (GtkAdjustment *adjustment,
  */
 void
 gtk_adjustment_clamp_page (GtkAdjustment *adjustment,
-                          gdouble        lower,
-                          gdouble        upper)
+                          double         lower,
+                          double         upper)
 {
   GtkAdjustmentPrivate *priv = gtk_adjustment_get_instance_private (adjustment);
   gboolean need_emission;
@@ -903,11 +903,11 @@ gtk_adjustment_clamp_page (GtkAdjustment *adjustment,
  *
  * Returns: the minimum increment of @adjustment
  */
-gdouble
+double
 gtk_adjustment_get_minimum_increment (GtkAdjustment *adjustment)
 {
   GtkAdjustmentPrivate *priv = gtk_adjustment_get_instance_private (adjustment);
-  gdouble minimum_increment;
+  double minimum_increment;
 
   g_return_val_if_fail (GTK_IS_ADJUSTMENT (adjustment), 0);
 
index 3c4bf7c6d6fccf569d7788fd59d098cf4bc345da..997c2b4df45162b438ce9ec35021d1dc37c90690 100644 (file)
@@ -73,59 +73,59 @@ struct _GtkAdjustmentClass
 GDK_AVAILABLE_IN_ALL
 GType      gtk_adjustment_get_type              (void) G_GNUC_CONST;
 GDK_AVAILABLE_IN_ALL
-GtkAdjustment*   gtk_adjustment_new             (gdouble          value,
-                                                 gdouble          lower,
-                                                 gdouble          upper,
-                                                 gdouble          step_increment,
-                                                 gdouble          page_increment,
-                                                 gdouble          page_size);
+GtkAdjustment*   gtk_adjustment_new             (double           value,
+                                                 double           lower,
+                                                 double           upper,
+                                                 double           step_increment,
+                                                 double           page_increment,
+                                                 double           page_size);
 
 GDK_AVAILABLE_IN_ALL
 void       gtk_adjustment_clamp_page            (GtkAdjustment   *adjustment,
-                                                 gdouble          lower,
-                                                 gdouble          upper);
+                                                 double           lower,
+                                                 double           upper);
 
 GDK_AVAILABLE_IN_ALL
-gdouble    gtk_adjustment_get_value             (GtkAdjustment   *adjustment);
+double     gtk_adjustment_get_value             (GtkAdjustment   *adjustment);
 GDK_AVAILABLE_IN_ALL
 void       gtk_adjustment_set_value             (GtkAdjustment   *adjustment,
-                                                 gdouble          value);
+                                                 double           value);
 GDK_AVAILABLE_IN_ALL
-gdouble    gtk_adjustment_get_lower             (GtkAdjustment   *adjustment);
+double     gtk_adjustment_get_lower             (GtkAdjustment   *adjustment);
 GDK_AVAILABLE_IN_ALL
 void       gtk_adjustment_set_lower             (GtkAdjustment   *adjustment,
-                                                 gdouble          lower);
+                                                 double           lower);
 GDK_AVAILABLE_IN_ALL
-gdouble    gtk_adjustment_get_upper             (GtkAdjustment   *adjustment);
+double     gtk_adjustment_get_upper             (GtkAdjustment   *adjustment);
 GDK_AVAILABLE_IN_ALL
 void       gtk_adjustment_set_upper             (GtkAdjustment   *adjustment,
-                                                 gdouble          upper);
+                                                 double           upper);
 GDK_AVAILABLE_IN_ALL
-gdouble    gtk_adjustment_get_step_increment    (GtkAdjustment   *adjustment);
+double     gtk_adjustment_get_step_increment    (GtkAdjustment   *adjustment);
 GDK_AVAILABLE_IN_ALL
 void       gtk_adjustment_set_step_increment    (GtkAdjustment   *adjustment,
-                                                 gdouble          step_increment);
+                                                 double           step_increment);
 GDK_AVAILABLE_IN_ALL
-gdouble    gtk_adjustment_get_page_increment    (GtkAdjustment   *adjustment);
+double     gtk_adjustment_get_page_increment    (GtkAdjustment   *adjustment);
 GDK_AVAILABLE_IN_ALL
 void       gtk_adjustment_set_page_increment    (GtkAdjustment   *adjustment,
-                                                 gdouble          page_increment);
+                                                 double           page_increment);
 GDK_AVAILABLE_IN_ALL
-gdouble    gtk_adjustment_get_page_size         (GtkAdjustment   *adjustment);
+double     gtk_adjustment_get_page_size         (GtkAdjustment   *adjustment);
 GDK_AVAILABLE_IN_ALL
 void       gtk_adjustment_set_page_size         (GtkAdjustment   *adjustment,
-                                                 gdouble          page_size);
+                                                 double           page_size);
 
 GDK_AVAILABLE_IN_ALL
 void       gtk_adjustment_configure             (GtkAdjustment   *adjustment,
-                                                 gdouble          value,
-                                                 gdouble          lower,
-                                                 gdouble          upper,
-                                                 gdouble          step_increment,
-                                                 gdouble          page_increment,
-                                                 gdouble          page_size);
-GDK_AVAILABLE_IN_ALL
-gdouble    gtk_adjustment_get_minimum_increment (GtkAdjustment   *adjustment);
+                                                 double           value,
+                                                 double           lower,
+                                                 double           upper,
+                                                 double           step_increment,
+                                                 double           page_increment,
+                                                 double           page_size);
+GDK_AVAILABLE_IN_ALL
+double     gtk_adjustment_get_minimum_increment (GtkAdjustment   *adjustment);
 
 G_END_DECLS
 
index c0884448a7d666caced1f355e41eb3e0c53d0fe8..2b42705f76d1c3104cbb18925f52c79f741121cf 100644 (file)
@@ -29,8 +29,8 @@ void gtk_adjustment_enable_animation (GtkAdjustment *adjustment,
                                       guint          duration);
 guint gtk_adjustment_get_animation_duration (GtkAdjustment *adjustment);
 void gtk_adjustment_animate_to_value (GtkAdjustment *adjustment,
-                                      gdouble        value);
-gdouble gtk_adjustment_get_target_value (GtkAdjustment *adjustment);
+                                      double         value);
+double gtk_adjustment_get_target_value (GtkAdjustment *adjustment);
 
 gboolean gtk_adjustment_is_animating (GtkAdjustment *adjustment);
 
index 7dd1035442030010db6549ed992fe25956436d04..a3ee15dfdedb91f6aabb628fc9c60a0860094088 100644 (file)
@@ -2132,7 +2132,7 @@ gtk_builder_value_from_string_type (GtkBuilder   *builder,
     case G_TYPE_FLOAT:
     case G_TYPE_DOUBLE:
       {
-        gdouble d;
+        double d;
         char *endptr = NULL;
         errno = 0;
         d = g_ascii_strtod (string, &endptr);
index a5c17000175358a2068b7e2ffcc23cac6d932e83..7ed25e16996ceafdc7baf2a3aa47969ad046844b 100644 (file)
@@ -310,8 +310,8 @@ gtk_button_class_init (GtkButtonClass *klass)
 static void
 click_pressed_cb (GtkGestureClick *gesture,
                   guint            n_press,
-                  gdouble          x,
-                  gdouble          y,
+                  double           x,
+                  double           y,
                   GtkWidget       *widget)
 {
   GtkButton *button = GTK_BUTTON (widget);
@@ -353,8 +353,8 @@ touch_release_in_button (GtkGestureClick *gesture,
 static void
 click_released_cb (GtkGestureClick *gesture,
                    guint            n_press,
-                   gdouble          x,
-                   gdouble          y,
+                   double           x,
+                   double           y,
                    GtkWidget       *widget)
 {
   GtkButton *button = GTK_BUTTON (widget);
index 353d8358f7a9860de4a1e0eaa3b448e352133937..0decdf544d3ee46effda0fa57bc7d07a3fc30ece 100644 (file)
@@ -270,8 +270,8 @@ static void calendar_invalidate_day_num (GtkCalendar *widget,
                                          int        day);
 
 static gboolean gtk_calendar_scroll_controller_scroll (GtkEventControllerScroll *scroll,
-                                                       gdouble                   dx,
-                                                       gdouble                   dy,
+                                                       double                    dx,
+                                                       double                    dy,
                                                        GtkWidget                *widget);
 
 static void     calendar_set_month_prev (GtkCalendar *calendar);
@@ -1139,8 +1139,8 @@ gtk_calendar_button_press (GtkGestureClick *gesture,
 
 static gboolean
 gtk_calendar_scroll_controller_scroll (GtkEventControllerScroll *scroll,
-                                       gdouble                   dx,
-                                       gdouble                   dy,
+                                       double                    dx,
+                                       double                    dy,
                                        GtkWidget                *widget)
 {
   GtkCalendar *calendar = GTK_CALENDAR (widget);
index 2c5caa07247aa0c4700f0df64399ed91167fe056..b8f08642637b96178b02f357e9d3990b043f2816 100644 (file)
@@ -68,7 +68,7 @@ struct _GtkCellRendererSpinPrivate
 {
   GtkWidget *spin;
   GtkAdjustment *adjustment;
-  gdouble climb_rate;
+  double climb_rate;
   guint   digits;
 };
 
index eefb1f70930833fbafafd7f874fcc20289dd75d3..2cacbf477e5745315053452a697a99f48a86bcee 100644 (file)
@@ -288,7 +288,7 @@ gtk_cell_renderer_spinner_get_size (GtkCellRenderer    *cellr,
 {
   GtkCellRendererSpinner *cell = GTK_CELL_RENDERER_SPINNER (cellr);
   GtkCellRendererSpinnerPrivate *priv = gtk_cell_renderer_spinner_get_instance_private (cell);
-  gdouble align;
+  double align;
   int w, h;
   int xpad, ypad;
   float xalign, yalign;
@@ -346,9 +346,9 @@ gtk_paint_spinner (GtkStyleContext *context,
 {
   GdkRGBA color;
   guint num_steps;
-  gdouble dx, dy;
-  gdouble radius;
-  gdouble half;
+  double dx, dy;
+  double radius;
+  double half;
   int i;
   guint real_step;
 
@@ -375,7 +375,7 @@ gtk_paint_spinner (GtkStyleContext *context,
       int inset = 0.7 * radius;
 
       /* transparency is a function of time and initial value */
-      gdouble t = (gdouble) ((i + num_steps - real_step)
+      double t = (double) ((i + num_steps - real_step)
                              % num_steps) / num_steps;
 
       cairo_save (cr);
index 5f1a2af59013868de1069ba1a4e7c8c10f24a90b..e11e5c5fe6568c1f1bce1ed713360801311e88b6 100644 (file)
@@ -181,7 +181,7 @@ struct _GtkCellRendererTextPrivate
   char *text;
   char *placeholder_text;
 
-  gdouble font_scale;
+  double font_scale;
 
   int rise;
   int fixed_height_rows;
index 0b7f36d0dbd2da498ff1471e9e01c0e4643ad447..7727e40157544b3022de6320bfea7497f69a0e25 100644 (file)
@@ -266,7 +266,7 @@ update_from_editor (GtkColorEditor        *editor,
 /* UI construction {{{1 */
 
 static guint
-scale_round (gdouble value, gdouble scale)
+scale_round (double value, double scale)
 {
   value = floor (value * scale + 0.5);
   value = MAX (value, 0);
index 46c89ca4ef039a8100bae005f0b68ef4527ea614..85a0c3df0eab59b614d4981f0dcf6803c026cd2c 100644 (file)
@@ -95,7 +95,7 @@ G_DEFINE_TYPE_WITH_CODE (GtkColorEditor, gtk_color_editor, GTK_TYPE_BOX,
                                                 gtk_color_editor_iface_init))
 
 static guint
-scale_round (gdouble value, gdouble scale)
+scale_round (double value, double scale)
 {
   value = floor (value * scale + 0.5);
   value = MAX (value, 0);
@@ -161,7 +161,7 @@ static void
 hsv_changed (GtkColorEditor *editor)
 {
   GdkRGBA color;
-  gdouble h, s, v, a;
+  double h, s, v, a;
 
   h = gtk_adjustment_get_value (editor->h_adj);
   s = gtk_adjustment_get_value (editor->s_adj);
@@ -333,7 +333,7 @@ static void
 value_changed (GtkAdjustment *a,
                GtkAdjustment *as)
 {
-  gdouble scale;
+  double scale;
 
   scale = gtk_adjustment_get_upper (as) / gtk_adjustment_get_upper (a);
   g_signal_handlers_block_by_func (as, value_changed, a);
@@ -343,7 +343,7 @@ value_changed (GtkAdjustment *a,
 
 static GtkAdjustment *
 scaled_adjustment (GtkAdjustment *a,
-                   gdouble        scale)
+                   double         scale)
 {
   GtkAdjustment *as;
 
index 90ad66347d485a6d5e8c214096578bf71f63e1ac..8aefd66fb885b6591c293e896aae2accdbeef258 100644 (file)
@@ -56,7 +56,7 @@ sv_to_xy (GtkColorPlane *plane,
           int           *x,
           int           *y)
 {
-  gdouble s, v;
+  double s, v;
   int width, height;
 
   width = gtk_widget_get_width (GTK_WIDGET (plane));
@@ -124,7 +124,7 @@ create_texture (GtkColorPlane *plane)
   guint32 *data, *p;
   float h, s, v;
   float r, g, b;
-  gdouble sf, vf;
+  double sf, vf;
   int x, y;
 
   if (!gtk_widget_get_realized (widget))
@@ -234,7 +234,7 @@ update_color (GtkColorPlane *plane,
               int            y)
 {
   GtkWidget *widget = GTK_WIDGET (plane);
-  gdouble s, v;
+  double s, v;
 
   s = CLAMP (1 - y * (1.0 / gtk_widget_get_height (widget)), 0, 1);
   v = CLAMP (x * (1.0 / gtk_widget_get_width (widget)), 0, 1);
@@ -246,8 +246,8 @@ update_color (GtkColorPlane *plane,
 
 static void
 hold_action (GtkGestureLongPress *gesture,
-             gdouble              x,
-             gdouble              y,
+             double               x,
+             double               y,
              GtkWidget           *plane)
 {
   gtk_widget_activate_action (plane,
@@ -257,10 +257,10 @@ hold_action (GtkGestureLongPress *gesture,
 
 static void
 sv_move (GtkColorPlane *plane,
-         gdouble        ds,
-         gdouble        dv)
+         double         ds,
+         double         dv)
 {
-  gdouble s, v;
+  double s, v;
 
   s = gtk_adjustment_get_value (plane->priv->s_adj);
   v = gtk_adjustment_get_value (plane->priv->v_adj);
@@ -319,7 +319,7 @@ key_controller_key_pressed (GtkEventControllerKey *controller,
                             GtkWidget             *widget)
 {
   GtkColorPlane *plane = GTK_COLOR_PLANE (widget);
-  gdouble step;
+  double step;
 
   if ((state & GDK_ALT_MASK) != 0)
     step = 0.1;
@@ -346,8 +346,8 @@ key_controller_key_pressed (GtkEventControllerKey *controller,
 
 static void
 plane_drag_gesture_begin (GtkGestureDrag *gesture,
-                          gdouble         start_x,
-                          gdouble         start_y,
+                          double          start_x,
+                          double          start_y,
                           GtkWidget      *plane)
 {
   guint button;
@@ -375,11 +375,11 @@ plane_drag_gesture_begin (GtkGestureDrag *gesture,
 
 static void
 plane_drag_gesture_update (GtkGestureDrag *gesture,
-                           gdouble         offset_x,
-                           gdouble         offset_y,
+                           double          offset_x,
+                           double          offset_y,
                            GtkColorPlane  *plane)
 {
-  gdouble start_x, start_y;
+  double start_x, start_y;
 
   gtk_gesture_drag_get_start_point (GTK_GESTURE_DRAG (gesture),
                                     &start_x, &start_y);
@@ -388,8 +388,8 @@ plane_drag_gesture_update (GtkGestureDrag *gesture,
 
 static void
 plane_drag_gesture_end (GtkGestureDrag *gesture,
-                        gdouble         offset_x,
-                        gdouble         offset_y,
+                        double          offset_x,
+                        double          offset_y,
                         GtkColorPlane  *plane)
 {
   set_cross_cursor (GTK_WIDGET (plane), FALSE);
index 496a96a3ce5219442e1462da4db0fd6b9a7ed06e..ec5d2c5367e170835bcf6d122097890d1e60e247 100644 (file)
@@ -50,8 +50,8 @@ enum
 };
 
 static void hold_action (GtkGestureLongPress *gesture,
-                         gdouble              x,
-                         gdouble              y,
+                         double               x,
+                         double               y,
                          GtkWidget           *scale);
 
 static void click_action (GtkGestureClick *gesture,
@@ -87,9 +87,9 @@ gtk_color_scale_snapshot_trough (GtkColorScale  *scale,
           int stride;
           GBytes *bytes;
           guchar *data, *p;
-          gdouble h;
+          double h;
           float r, g, b;
-          gdouble f;
+          double f;
           int hue_x, hue_y;
 
           stride = width * 3;
@@ -260,8 +260,8 @@ scale_set_property (GObject      *object,
 
 static void
 hold_action (GtkGestureLongPress *gesture,
-             gdouble              x,
-             gdouble              y,
+             double               x,
+             double               y,
              GtkWidget           *scale)
 {
   gtk_widget_activate_action (scale,
index ad6ef4deb693925648f7045764490aee55a2f285..475067a6b992ccf19b7ec6649b139b689439bcf0 100644 (file)
@@ -59,7 +59,7 @@ struct _GtkColorSwatch
   GtkWidget parent_instance;
 
   GdkRGBA color;
-  gdouble radius[4];
+  double radius[4];
   char *icon;
   guint    has_color        : 1;
   guint    use_alpha        : 1;
@@ -270,8 +270,8 @@ swatch_primary_action (GtkColorSwatch *swatch)
 
 static void
 hold_action (GtkGestureLongPress *gesture,
-             gdouble              x,
-             gdouble              y,
+             double               x,
+             double               y,
              GtkColorSwatch      *swatch)
 {
   do_popup (swatch);
@@ -281,8 +281,8 @@ hold_action (GtkGestureLongPress *gesture,
 static void
 tap_action (GtkGestureClick *gesture,
             int              n_press,
-            gdouble          x,
-            gdouble          y,
+            double           x,
+            double           y,
             GtkColorSwatch  *swatch)
 {
   guint button;
index fa8bac76f688939780d636fd291fd9bb72babed5..87031a6b324e3885022541c37d455efd564518c1 100644 (file)
@@ -36,10 +36,10 @@ void        gtk_color_swatch_set_rgba         (GtkColorSwatch *swatch,
 gboolean    gtk_color_swatch_get_rgba         (GtkColorSwatch *swatch,
                                                GdkRGBA        *color);
 void        gtk_color_swatch_set_hsva         (GtkColorSwatch *swatch,
-                                               gdouble         h,
-                                               gdouble         s,
-                                               gdouble         v,
-                                               gdouble         a);
+                                               double          h,
+                                               double          s,
+                                               double          v,
+                                               double          a);
 void        gtk_color_swatch_set_can_drop     (GtkColorSwatch *swatch,
                                                gboolean        can_drop);
 void        gtk_color_swatch_set_icon         (GtkColorSwatch *swatch,
index 0874726b174214a634a201dc1c33e73622548fd4..6c66f0a5217448b53119e017ddf6de58d09dd0ae 100644 (file)
@@ -235,8 +235,8 @@ static void     gtk_combo_box_real_popup           (GtkComboBox      *combo_box)
 static gboolean gtk_combo_box_real_popdown         (GtkComboBox      *combo_box);
 
 static gboolean gtk_combo_box_scroll_controller_scroll (GtkEventControllerScroll *scroll,
-                                                        gdouble                   dx,
-                                                        gdouble                   dy,
+                                                        double                    dx,
+                                                        double                    dy,
                                                         GtkComboBox              *combo_box);
 
 /* listening to the model */
@@ -522,7 +522,7 @@ gtk_combo_box_class_init (GtkComboBoxClass *klass)
    * {
    *   GtkTreeIter iter;
    *   GtkTreeModel model;
-   *   gdouble      value;
+   *   double       value;
    *
    *   model = gtk_combo_box_get_model (combo);
    *
@@ -1664,8 +1664,8 @@ tree_first (GtkComboBox  *combo,
 
 static gboolean
 gtk_combo_box_scroll_controller_scroll (GtkEventControllerScroll *scroll,
-                                        gdouble                   dx,
-                                        gdouble                   dy,
+                                        double                    dx,
+                                        double                    dy,
                                         GtkComboBox              *combo_box)
 {
   GtkComboBoxPrivate *priv = gtk_combo_box_get_instance_private (combo_box);
index a250de6212b806dd4f6b4672fa86c2b74d667809..01b046ee4e691719f79bab0e65daadb8caa7200d 100644 (file)
@@ -311,8 +311,8 @@ gtk_css_boxes_get_outline_rect (GtkCssBoxes *boxes)
 static inline void
 gtk_css_boxes_clamp_border_radius (GskRoundedRect *box)
 {
-  gdouble factor = 1.0;
-  gdouble corners;
+  double factor = 1.0;
+  double corners;
 
   corners = box->corner[GSK_CORNER_TOP_LEFT].width + box->corner[GSK_CORNER_TOP_RIGHT].width;
   if (corners != 0)
index cf38ca11fd2d1950e59ed4ae060f5273044bd350..cbd8988c0179949275973a54c83dd755443244b7 100644 (file)
@@ -49,14 +49,14 @@ struct _GtkCssValue
     struct
     {
       GtkCssValue *color;
-      gdouble factor;
+      double factor;
     } shade, alpha;
 
     struct
     {
       GtkCssValue *color1;
       GtkCssValue *color2;
-      gdouble factor;
+      double factor;
     } mix;
   } sym_col;
 };
@@ -537,7 +537,7 @@ _gtk_css_color_value_new_name (const char *name)
 
 GtkCssValue *
 _gtk_css_color_value_new_shade (GtkCssValue *color,
-                                gdouble      factor)
+                                double       factor)
 {
   GtkCssValue *value;
 
@@ -562,7 +562,7 @@ _gtk_css_color_value_new_shade (GtkCssValue *color,
 
 GtkCssValue *
 _gtk_css_color_value_new_alpha (GtkCssValue *color,
-                                gdouble      factor)
+                                double       factor)
 {
   GtkCssValue *value;
 
@@ -588,7 +588,7 @@ _gtk_css_color_value_new_alpha (GtkCssValue *color,
 GtkCssValue *
 _gtk_css_color_value_new_mix (GtkCssValue *color1,
                               GtkCssValue *color2,
-                              gdouble      factor)
+                              double       factor)
 {
   GtkCssValue *value;
 
index 793b3d8978263608cb53020a1f24cdd4c6601ac8..49387d2c439a8b6f1c76256d60881a4470d26975 100644 (file)
@@ -29,12 +29,12 @@ GtkCssValue *   gtk_css_color_value_new_white           (void) G_GNUC_PURE;
 GtkCssValue *   _gtk_css_color_value_new_literal        (const GdkRGBA  *color) G_GNUC_PURE;
 GtkCssValue *   _gtk_css_color_value_new_name           (const char     *name) G_GNUC_PURE;
 GtkCssValue *   _gtk_css_color_value_new_shade          (GtkCssValue    *color,
-                                                         gdouble         factor) G_GNUC_PURE;
+                                                         double          factor) G_GNUC_PURE;
 GtkCssValue *   _gtk_css_color_value_new_alpha          (GtkCssValue    *color,
-                                                         gdouble         factor) G_GNUC_PURE;
+                                                         double          factor) G_GNUC_PURE;
 GtkCssValue *   _gtk_css_color_value_new_mix            (GtkCssValue    *color1,
                                                          GtkCssValue    *color2,
-                                                         gdouble         factor) G_GNUC_PURE;
+                                                         double          factor) G_GNUC_PURE;
 GtkCssValue *   _gtk_css_color_value_new_current_color  (void) G_GNUC_PURE;
 
 gboolean        gtk_css_color_value_can_parse           (GtkCssParser   *parser);
index 4bd995546f9809948ae63c8d55f363bfccb8daa0..6940fdf12aa0790cc40d0690bcdd7cc0de09f29f 100644 (file)
@@ -490,7 +490,7 @@ unit_widget_get (GtkWidget *unit_widget)
 
 static void
 unit_widget_set (GtkWidget *unit_widget,
-                 gdouble    value)
+                 double     value)
 {
   UnitWidget *data;
 
index 73787607f4b50ea9d01d349d828044dfc8b94728..35d107d996b2e2505acaa7e230ae53a151fe084a 100644 (file)
@@ -86,8 +86,8 @@ struct _GtkDragSource
   int hot_x;
   int hot_y;
 
-  gdouble start_x;
-  gdouble start_y;
+  double start_x;
+  double start_y;
 
   GdkDrag *drag;
 };
index 2f228182dd52af6281ecb94492162b76f50290a6..d95c5f3b72929ebf8c3bb7ec65d0ae3d2c5f835d 100644 (file)
@@ -1504,8 +1504,8 @@ get_icon_position_from_controller (GtkEntry           *entry,
 static void
 icon_pressed_cb (GtkGestureClick *gesture,
                  int                   n_press,
-                 gdouble               x,
-                 gdouble               y,
+                 double                x,
+                 double                y,
                  GtkEntry             *entry)
 {
   GtkEntryPrivate *priv = gtk_entry_get_instance_private (entry);
@@ -1524,8 +1524,8 @@ icon_pressed_cb (GtkGestureClick *gesture,
 static void
 icon_released_cb (GtkGestureClick *gesture,
                   int              n_press,
-                  gdouble          x,
-                  gdouble          y,
+                  double           x,
+                  double           y,
                   GtkEntry        *entry)
 {
   GtkEntryPrivate *priv = gtk_entry_get_instance_private (entry);
@@ -1541,12 +1541,12 @@ icon_released_cb (GtkGestureClick *gesture,
 
 static void
 icon_drag_update_cb (GtkGestureDrag *gesture,
-                     gdouble         x,
-                     gdouble         y,
+                     double          x,
+                     double          y,
                      GtkEntry       *entry)
 {
   GtkEntryPrivate *priv = gtk_entry_get_instance_private (entry);
-  gdouble start_x, start_y;
+  double start_x, start_y;
   GtkEntryIconPosition pos;
   EntryIconInfo *icon_info;
 
@@ -3254,10 +3254,10 @@ gtk_entry_ensure_progress_widget (GtkEntry *entry)
  */
 void
 gtk_entry_set_progress_fraction (GtkEntry *entry,
-                                 gdouble   fraction)
+                                 double    fraction)
 {
   GtkEntryPrivate *priv = gtk_entry_get_instance_private (entry);
-  gdouble          old_fraction;
+  double           old_fraction;
 
   g_return_if_fail (GTK_IS_ENTRY (entry));
 
@@ -3283,7 +3283,7 @@ gtk_entry_set_progress_fraction (GtkEntry *entry,
  *
  * Returns: a fraction from 0.0 to 1.0
  */
-gdouble
+double
 gtk_entry_get_progress_fraction (GtkEntry *entry)
 {
   GtkEntryPrivate *priv = gtk_entry_get_instance_private (entry);
@@ -3306,7 +3306,7 @@ gtk_entry_get_progress_fraction (GtkEntry *entry)
  */
 void
 gtk_entry_set_progress_pulse_step (GtkEntry *entry,
-                                   gdouble   fraction)
+                                   double    fraction)
 {
   GtkEntryPrivate *priv = gtk_entry_get_instance_private (entry);
 
@@ -3331,7 +3331,7 @@ gtk_entry_set_progress_pulse_step (GtkEntry *entry,
  *
  * Returns: a fraction from 0.0 to 1.0
  */
-gdouble
+double
 gtk_entry_get_progress_pulse_step (GtkEntry *entry)
 {
   GtkEntryPrivate *priv = gtk_entry_get_instance_private (entry);
index 66f8c67f00e218a8d0d4f42f3d8643dccbe81438..c256fb24bf9c3761b1cb4540fbe54d8b8413d7fc 100644 (file)
@@ -167,15 +167,15 @@ GtkEntryCompletion *gtk_entry_get_completion (GtkEntry           *entry);
  */
 GDK_AVAILABLE_IN_ALL
 void           gtk_entry_set_progress_fraction   (GtkEntry     *entry,
-                                                  gdouble       fraction);
+                                                  double        fraction);
 GDK_AVAILABLE_IN_ALL
-gdouble        gtk_entry_get_progress_fraction   (GtkEntry     *entry);
+double         gtk_entry_get_progress_fraction   (GtkEntry     *entry);
 
 GDK_AVAILABLE_IN_ALL
 void           gtk_entry_set_progress_pulse_step (GtkEntry     *entry,
-                                                  gdouble       fraction);
+                                                  double        fraction);
 GDK_AVAILABLE_IN_ALL
-gdouble        gtk_entry_get_progress_pulse_step (GtkEntry     *entry);
+double         gtk_entry_get_progress_pulse_step (GtkEntry     *entry);
 
 GDK_AVAILABLE_IN_ALL
 void           gtk_entry_progress_pulse          (GtkEntry     *entry);
index 5f4084a38f6ebaa9d96521c8c85cc5c115471253..b466bb74eef735f5693c3ddca5dfe50c5671afc3 100644 (file)
@@ -70,8 +70,8 @@
 
 typedef struct
 {
-  gdouble dx;
-  gdouble dy;
+  double dx;
+  double dy;
   guint32 evtime;
 } ScrollHistoryElem;
 
@@ -82,8 +82,8 @@ struct _GtkEventControllerScroll
   GArray *scroll_history;
 
   /* For discrete event coalescing */
-  gdouble cur_dx;
-  gdouble cur_dy;
+  double cur_dx;
+  double cur_dy;
 
   guint active : 1;
 };
@@ -115,8 +115,8 @@ G_DEFINE_TYPE (GtkEventControllerScroll, gtk_event_controller_scroll,
 
 static void
 scroll_history_push (GtkEventControllerScroll *scroll,
-                     gdouble                   delta_x,
-                     gdouble                   delta_y,
+                     double                    delta_x,
+                     double                    delta_y,
                      guint32                   evtime)
 {
   ScrollHistoryElem new_item;
@@ -153,10 +153,10 @@ scroll_history_reset (GtkEventControllerScroll *scroll)
 
 static void
 scroll_history_finish (GtkEventControllerScroll *scroll,
-                       gdouble                  *velocity_x,
-                       gdouble                  *velocity_y)
+                       double                   *velocity_x,
+                       double                   *velocity_y)
 {
-  gdouble accum_dx = 0, accum_dy = 0;
+  double accum_dx = 0, accum_dy = 0;
   guint32 first = 0, last = 0;
   guint i;
 
@@ -244,7 +244,7 @@ gtk_event_controller_scroll_handle_event (GtkEventController *controller,
 {
   GtkEventControllerScroll *scroll = GTK_EVENT_CONTROLLER_SCROLL (controller);
   GdkScrollDirection direction = GDK_SCROLL_SMOOTH;
-  gdouble dx = 0, dy = 0;
+  double dx = 0, dy = 0;
   gboolean handled = GDK_EVENT_PROPAGATE;
 
   if (gdk_event_get_event_type (event) != GDK_SCROLL)
@@ -342,7 +342,7 @@ gtk_event_controller_scroll_handle_event (GtkEventController *controller,
 
       if (scroll->flags & GTK_EVENT_CONTROLLER_SCROLL_KINETIC)
         {
-          gdouble vel_x, vel_y;
+          double vel_x, vel_y;
 
           scroll_history_finish (scroll, &vel_x, &vel_y);
           g_signal_emit (controller, signals[DECELERATE], 0, vel_x, vel_y);
index b50f0a477d9bc9bf1b2d3d1e4bdaadcd9d957f34..a5864d5f4798a9ca5fad166fe62922593af1e8f2 100644 (file)
@@ -212,8 +212,8 @@ static void gtk_expander_measure (GtkWidget      *widget,
 /* Gestures */
 static void     gesture_click_released_cb (GtkGestureClick *gesture,
                                            int              n_press,
-                                           gdouble          x,
-                                           gdouble          y,
+                                           double           x,
+                                           double           y,
                                            GtkExpander     *expander);
 
 G_DEFINE_TYPE_WITH_CODE (GtkExpander, gtk_expander, GTK_TYPE_WIDGET,
@@ -566,8 +566,8 @@ gtk_expander_size_allocate (GtkWidget *widget,
 static void
 gesture_click_released_cb (GtkGestureClick *gesture,
                            int              n_press,
-                           gdouble          x,
-                           gdouble          y,
+                           double           x,
+                           double           y,
                            GtkExpander     *expander)
 {
   gtk_widget_activate (GTK_WIDGET (expander));
index e0c817f82068f56c773adc0c43c30c381ecba43d..44d6e856531678c7c45922df1b37734536635c89 100644 (file)
@@ -1914,8 +1914,8 @@ file_list_update_popover (GtkFileChooserWidget *impl)
 
 static void
 file_list_show_popover (GtkFileChooserWidget *impl,
-                        gdouble               x,
-                        gdouble               y)
+                        double                x,
+                        double                y)
 {
   GdkRectangle rect;
   GtkTreeSelection *selection;
@@ -2062,8 +2062,8 @@ click_cb (GtkGesture           *gesture,
 
 static void
 long_press_cb (GtkGesture           *gesture,
-               gdouble               x,
-               gdouble               y,
+               double                x,
+               double                y,
                GtkFileChooserWidget *impl)
 {
   file_list_show_popover (impl, x, y);
index 75df8e2a0fc0d0b83544dfba90a792bc29782ba1..169e18d4a7def6d7148fec717c4bfff9d9dc0862 100644 (file)
@@ -2600,9 +2600,9 @@ autoscroll_cb (GtkWidget     *widget,
   GtkFlowBox *box = GTK_FLOW_BOX (data);
   GtkFlowBoxPrivate *priv = BOX_PRIV (box);
   GtkAdjustment *adjustment;
-  gdouble factor;
-  gdouble increment;
-  gdouble value;
+  double factor;
+  double increment;
+  double value;
 
   if (priv->orientation == GTK_ORIENTATION_HORIZONTAL)
     adjustment = priv->vadjustment;
@@ -2649,7 +2649,7 @@ autoscroll_cb (GtkWidget     *widget,
   if (priv->rubberband_select)
     {
       GdkEventSequence *sequence;
-      gdouble x, y;
+      double x, y;
       GtkFlowBoxChild *child;
 
       sequence = gtk_gesture_single_get_current_sequence (GTK_GESTURE_SINGLE (priv->drag_gesture));
@@ -2744,12 +2744,12 @@ update_autoscroll_mode (GtkFlowBox *box,
 
 static void
 gtk_flow_box_drag_gesture_update (GtkGestureDrag *gesture,
-                                  gdouble         offset_x,
-                                  gdouble         offset_y,
+                                  double          offset_x,
+                                  double          offset_y,
                                   GtkFlowBox     *box)
 {
   GtkFlowBoxPrivate *priv = BOX_PRIV (box);
-  gdouble start_x, start_y;
+  double start_x, start_y;
   GtkFlowBoxChild *child;
   GtkCssNode *widget_node;
 
@@ -2796,8 +2796,8 @@ gtk_flow_box_drag_gesture_update (GtkGestureDrag *gesture,
 static void
 gtk_flow_box_click_gesture_pressed (GtkGestureClick *gesture,
                                     guint            n_press,
-                                    gdouble          x,
-                                    gdouble          y,
+                                    double           x,
+                                    double           y,
                                     GtkFlowBox      *box)
 {
   GtkFlowBoxPrivate *priv = BOX_PRIV (box);
@@ -2825,8 +2825,8 @@ gtk_flow_box_click_gesture_pressed (GtkGestureClick *gesture,
 
 static void
 gtk_flow_box_click_unpaired_release (GtkGestureClick  *gesture,
-                                     gdouble           x,
-                                     gdouble           y,
+                                     double            x,
+                                     double            y,
                                      guint             button,
                                      GdkEventSequence *sequence,
                                      GtkFlowBox       *box)
@@ -2846,8 +2846,8 @@ gtk_flow_box_click_unpaired_release (GtkGestureClick  *gesture,
 static void
 gtk_flow_box_click_gesture_released (GtkGestureClick *gesture,
                                      guint            n_press,
-                                     gdouble          x,
-                                     gdouble          y,
+                                     double           x,
+                                     double           y,
                                      GtkFlowBox      *box)
 {
   GtkFlowBoxPrivate *priv = BOX_PRIV (box);
@@ -2902,8 +2902,8 @@ gtk_flow_box_click_gesture_stopped (GtkGestureClick *gesture,
 
 static void
 gtk_flow_box_drag_gesture_begin (GtkGestureDrag *gesture,
-                                 gdouble         start_x,
-                                 gdouble         start_y,
+                                 double          start_x,
+                                 double          start_y,
                                  GtkWidget      *widget)
 {
   GtkFlowBoxPrivate *priv = BOX_PRIV (widget);
@@ -2943,8 +2943,8 @@ gtk_flow_box_stop_rubberband (GtkFlowBox *box)
 
 static void
 gtk_flow_box_drag_gesture_end (GtkGestureDrag *gesture,
-                               gdouble         offset_x,
-                               gdouble         offset_y,
+                               double          offset_x,
+                               double          offset_y,
                                GtkFlowBox     *box)
 {
   GtkFlowBoxPrivate *priv = BOX_PRIV (box);
index f255849f777d118a917582df0804d646fd7a38d5..e56b13ad420522308ecc72ae5209ccf3fa7c3aa5 100644 (file)
@@ -293,7 +293,7 @@ size_change_cb (GtkAdjustment *adjustment,
 {
   GtkFontChooserWidget *fontchooser = user_data;
   PangoFontDescription *font_desc;
-  gdouble size = gtk_adjustment_get_value (adjustment);
+  double size = gtk_adjustment_get_value (adjustment);
 
   font_desc = pango_font_description_new ();
   if (pango_font_description_get_size_is_absolute (fontchooser->font_desc))
@@ -310,7 +310,7 @@ output_cb (GtkSpinButton *spin,
 {
   GtkAdjustment *adjustment;
   char *text;
-  gdouble value;
+  double value;
 
   adjustment = gtk_spin_button_get_adjustment (spin);
   value = gtk_adjustment_get_value (adjustment);
@@ -328,7 +328,7 @@ gtk_font_chooser_widget_update_marks (GtkFontChooserWidget *self)
   const int *sizes;
   int *font_sizes;
   int i, n_sizes;
-  gdouble value, spin_value;
+  double value, spin_value;
   gpointer item;
 
   item = gtk_single_selection_get_selected_item (self->selection);
@@ -376,11 +376,11 @@ gtk_font_chooser_widget_update_marks (GtkFontChooserWidget *self)
   spin_value = gtk_adjustment_get_value (spin_adj);
 
   if (spin_value < sizes[0])
-    value = (gdouble) sizes[0];
+    value = (double) sizes[0];
   else if (spin_value > sizes[n_sizes - 1])
-    value = (gdouble)sizes[n_sizes - 1];
+    value = (double)sizes[n_sizes - 1];
   else
-    value = (gdouble)spin_value;
+    value = (double)spin_value;
 
   /* ensure clamping doesn't callback into font resizing code */
   g_signal_handlers_block_by_func (adj, size_change_cb, self);
@@ -812,9 +812,9 @@ gtk_font_chooser_widget_init (GtkFontChooserWidget *self)
 
   /* Set the upper values of the spin/scale with G_MAXINT / PANGO_SCALE */
   gtk_spin_button_set_range (GTK_SPIN_BUTTON (self->size_spin),
-                            1.0, (gdouble)(G_MAXINT / PANGO_SCALE));
+                            1.0, (double)(G_MAXINT / PANGO_SCALE));
   gtk_adjustment_set_upper (gtk_range_get_adjustment (GTK_RANGE (self->size_slider)),
-                           (gdouble)(G_MAXINT / PANGO_SCALE));
+                           (double)(G_MAXINT / PANGO_SCALE));
 
   self->tweak_action = G_ACTION (g_simple_action_new_stateful ("tweak", NULL, g_variant_new_boolean (FALSE)));
   g_signal_connect (self->tweak_action, "change-state", G_CALLBACK (change_tweak), self);
index a30365d15b40d6f843bd7956845a1226f72933de..84944da8e3e92f1fd4956bc2680d5f024afbfc40 100644 (file)
@@ -146,12 +146,12 @@ struct _PointData
 {
   GdkEvent *event;
   GtkWidget *target;
-  gdouble widget_x;
-  gdouble widget_y;
+  double widget_x;
+  double widget_y;
 
   /* Acummulators for touchpad events */
-  gdouble accum_dx;
-  gdouble accum_dy;
+  double accum_dx;
+  double accum_dy;
 
   guint press_handled : 1;
   guint state : 2;
@@ -1209,8 +1209,8 @@ gtk_gesture_get_last_target (GtkGesture        *gesture,
 gboolean
 gtk_gesture_get_point (GtkGesture       *gesture,
                        GdkEventSequence *sequence,
-                       gdouble          *x,
-                       gdouble          *y)
+                       double           *x,
+                       double           *y)
 {
   GtkGesturePrivate *priv;
   PointData *data;
@@ -1276,7 +1276,7 @@ gtk_gesture_get_bounding_box (GtkGesture   *gesture,
                               GdkRectangle *rect)
 {
   GtkGesturePrivate *priv;
-  gdouble x1, y1, x2, y2;
+  double x1, y1, x2, y2;
   GHashTableIter iter;
   guint n_points = 0;
   PointData *data;
@@ -1336,8 +1336,8 @@ gtk_gesture_get_bounding_box (GtkGesture   *gesture,
  **/
 gboolean
 gtk_gesture_get_bounding_box_center (GtkGesture *gesture,
-                                     gdouble    *x,
-                                     gdouble    *y)
+                                     double     *x,
+                                     double     *y)
 {
   GdkEvent *last_event;
   GdkRectangle rect;
index 026d37023fd9585ec5a9e784c27fafd7cd9581e8..9f7f454e6e3337ebf09bb88bc92e01454c39519f 100644 (file)
@@ -73,16 +73,16 @@ GdkEvent *
 GDK_AVAILABLE_IN_ALL
 gboolean    gtk_gesture_get_point            (GtkGesture       *gesture,
                                               GdkEventSequence *sequence,
-                                              gdouble          *x,
-                                              gdouble          *y);
+                                              double           *x,
+                                              double           *y);
 GDK_AVAILABLE_IN_ALL
 gboolean    gtk_gesture_get_bounding_box     (GtkGesture       *gesture,
                                               GdkRectangle     *rect);
 GDK_AVAILABLE_IN_ALL
 gboolean    gtk_gesture_get_bounding_box_center
                                              (GtkGesture       *gesture,
-                                              gdouble          *x,
-                                              gdouble          *y);
+                                              double           *x,
+                                              double           *y);
 GDK_AVAILABLE_IN_ALL
 gboolean    gtk_gesture_is_active            (GtkGesture       *gesture);
 
index 48968e4ab8ff10933d473dc2c379cd78386b3fa4..15039ab767ff6468a365018beb4750fa4fc9795f 100644 (file)
@@ -47,8 +47,8 @@ typedef struct _GtkGestureClickPrivate GtkGestureClickPrivate;
 struct _GtkGestureClickPrivate
 {
   GdkDevice *current_device;
-  gdouble initial_press_x;
-  gdouble initial_press_y;
+  double initial_press_x;
+  double initial_press_y;
   guint double_click_timeout_id;
   guint n_presses;
   guint n_release;
@@ -193,7 +193,7 @@ gtk_gesture_click_begin (GtkGesture       *gesture,
   GdkEvent *event;
   GdkEventType event_type;
   GdkDevice *device;
-  gdouble x, y;
+  double x, y;
 
   if (!gtk_gesture_handles_sequence (gesture, sequence))
     return;
@@ -250,7 +250,7 @@ gtk_gesture_click_update (GtkGesture       *gesture,
 {
   GtkGestureClick *click;
   GdkEventSequence *current;
-  gdouble x, y;
+  double x, y;
 
   click = GTK_GESTURE_CLICK (gesture);
   current = gtk_gesture_single_get_current_sequence (GTK_GESTURE_SINGLE (gesture));
@@ -267,7 +267,7 @@ gtk_gesture_click_end (GtkGesture       *gesture,
   GtkGestureClick *click;
   GtkGestureClickPrivate *priv;
   GdkEventSequence *current;
-  gdouble x, y;
+  double x, y;
   gboolean interpreted;
   GtkEventSequenceState state;
 
index 64d04f780ff6f4baa65559193afcf78b03ad7b36..87d7da635ee727bad5dd8454cf2bd7ead771975f 100644 (file)
@@ -33,12 +33,12 @@ struct _GtkGestureClickClass
 
   void     (* pressed)  (GtkGestureClick *gesture,
                          int              n_press,
-                         gdouble          x,
-                         gdouble          y);
+                         double           x,
+                         double           y);
   void     (* released) (GtkGestureClick *gesture,
                          int              n_press,
-                         gdouble          x,
-                         gdouble          y);
+                         double           x,
+                         double           y);
   void     (* stopped)  (GtkGestureClick *gesture);
 
   /*<private>*/
index be03a7a291c0917d34878f8580cd457add986f41..f0939136bbcabafd2e9d8f6a3df8af6debb1a4bf 100644 (file)
@@ -41,10 +41,10 @@ typedef struct _EventData EventData;
 
 struct _GtkGestureDragPrivate
 {
-  gdouble start_x;
-  gdouble start_y;
-  gdouble last_x;
-  gdouble last_y;
+  double start_x;
+  double start_y;
+  double last_x;
+  double last_y;
 };
 
 enum {
@@ -102,7 +102,7 @@ gtk_gesture_drag_update (GtkGesture       *gesture,
                          GdkEventSequence *sequence)
 {
   GtkGestureDragPrivate *priv;
-  gdouble x, y;
+  double x, y;
 
   priv = gtk_gesture_drag_get_instance_private (GTK_GESTURE_DRAG (gesture));
   gtk_gesture_get_point (gesture, sequence, &priv->last_x, &priv->last_y);
@@ -118,7 +118,7 @@ gtk_gesture_drag_end (GtkGesture       *gesture,
 {
   GtkGestureDragPrivate *priv;
   GdkEventSequence *current;
-  gdouble x, y;
+  double x, y;
 
   current = gtk_gesture_single_get_current_sequence (GTK_GESTURE_SINGLE (gesture));
 
@@ -234,8 +234,8 @@ gtk_gesture_drag_new (void)
  **/
 gboolean
 gtk_gesture_drag_get_start_point (GtkGestureDrag *gesture,
-                                  gdouble        *x,
-                                  gdouble        *y)
+                                  double         *x,
+                                  double         *y)
 {
   GtkGestureDragPrivate *priv;
   GdkEventSequence *sequence;
@@ -272,8 +272,8 @@ gtk_gesture_drag_get_start_point (GtkGestureDrag *gesture,
  **/
 gboolean
 gtk_gesture_drag_get_offset (GtkGestureDrag *gesture,
-                             gdouble        *x,
-                             gdouble        *y)
+                             double         *x,
+                             double         *y)
 {
   GtkGestureDragPrivate *priv;
   GdkEventSequence *sequence;
index 2493e65de4ab00dc672b20c802592e863fdb0321..fca25d1802294e76c8c2dea001862256ff4d2759 100644 (file)
@@ -46,12 +46,12 @@ GtkGesture * gtk_gesture_drag_new               (void);
 
 GDK_AVAILABLE_IN_ALL
 gboolean     gtk_gesture_drag_get_start_point   (GtkGestureDrag *gesture,
-                                                 gdouble        *x,
-                                                 gdouble        *y);
+                                                 double         *x,
+                                                 double         *y);
 GDK_AVAILABLE_IN_ALL
 gboolean     gtk_gesture_drag_get_offset        (GtkGestureDrag *gesture,
-                                                 gdouble        *x,
-                                                 gdouble        *y);
+                                                 double         *x,
+                                                 double         *y);
 
 G_END_DECLS
 
index 63edc7e2651088e6e3dac1cb09db14785a73dba6..f29eaeb78b72b0a5ad47095eb9e16361e0dadabe 100644 (file)
@@ -32,14 +32,14 @@ struct _GtkGestureDragClass
   GtkGestureSingleClass parent_class;
 
   void (* drag_begin)  (GtkGestureDrag *gesture,
-                        gdouble         start_x,
-                        gdouble         start_y);
+                        double          start_x,
+                        double          start_y);
   void (* drag_update) (GtkGestureDrag *gesture,
-                        gdouble         offset_x,
-                        gdouble         offset_y);
+                        double          offset_x,
+                        double          offset_y);
   void (* drag_end)    (GtkGestureDrag *gesture,
-                        gdouble         offset_x,
-                        gdouble         offset_y);
+                        double          offset_x,
+                        double          offset_y);
   /*<private>*/
   gpointer padding[10];
 };
index 777debc9aac090262df83d1cfa57fd629057145d..06e254417bc1b37cfed362463e83f86eedfaf16c 100644 (file)
@@ -56,10 +56,10 @@ enum {
 
 struct _GtkGestureLongPressPrivate
 {
-  gdouble initial_x;
-  gdouble initial_y;
+  double initial_x;
+  double initial_y;
 
-  gdouble delay_factor;
+  double delay_factor;
   guint timeout_id;
   guint delay;
   guint cancelled : 1;
@@ -98,7 +98,7 @@ _gtk_gesture_long_press_timeout (gpointer user_data)
   GtkGestureLongPress *gesture = user_data;
   GtkGestureLongPressPrivate *priv;
   GdkEventSequence *sequence;
-  gdouble x, y;
+  double x, y;
 
   priv = gtk_gesture_long_press_get_instance_private (gesture);
   sequence = gtk_gesture_get_last_updated_sequence (GTK_GESTURE (gesture));
@@ -153,7 +153,7 @@ gtk_gesture_long_press_update (GtkGesture       *gesture,
 {
   GtkGestureLongPressPrivate *priv;
   GtkWidget *widget;
-  gdouble x, y;
+  double x, y;
 
   widget = gtk_event_controller_get_widget (GTK_EVENT_CONTROLLER (gesture));
   priv = gtk_gesture_long_press_get_instance_private (GTK_GESTURE_LONG_PRESS (gesture));
index 5b9aa88f4cb280675c4195ab89889b50ca835a6e..67dc4ef985814c5a219fb157a613ab8bc180b1ad 100644 (file)
@@ -33,8 +33,8 @@ struct _GtkGestureLongPressClass
   GtkGestureSingleClass parent_class;
 
   void (* pressed)   (GtkGestureLongPress *gesture,
-                      gdouble              x,
-                      gdouble              y);
+                      double               x,
+                      double               y);
   void (* cancelled) (GtkGestureLongPress *gesture);
 
   /*< private >*/
index fa656084c16b80327aecc37d80ec2de4a2d0f36e..32c223fee51e6e1307c757a5b20fe42a910efc45 100644 (file)
@@ -105,8 +105,8 @@ gtk_gesture_pan_set_property (GObject      *object,
 }
 
 static void
-direction_from_offset (gdouble          offset_x,
-                       gdouble          offset_y,
+direction_from_offset (double           offset_x,
+                       double           offset_y,
                        GtkOrientation   orientation,
                        GtkPanDirection *direction)
 {
@@ -130,11 +130,11 @@ direction_from_offset (gdouble          offset_x,
 
 static gboolean
 guess_direction (GtkGesturePan   *gesture,
-                 gdouble          offset_x,
-                 gdouble          offset_y,
+                 double           offset_x,
+                 double           offset_y,
                  GtkPanDirection *direction)
 {
-  gdouble abs_x, abs_y;
+  double abs_x, abs_y;
 
   abs_x = ABS (offset_x);
   abs_y = ABS (offset_y);
@@ -169,13 +169,13 @@ check_orientation_matches (GtkGesturePan   *gesture,
 
 static void
 gtk_gesture_pan_drag_update (GtkGestureDrag *gesture,
-                             gdouble         offset_x,
-                             gdouble         offset_y)
+                             double          offset_x,
+                             double          offset_y)
 {
   GtkGesturePanPrivate *priv;
   GtkPanDirection direction;
   GtkGesturePan *pan;
-  gdouble offset;
+  double offset;
 
   pan = GTK_GESTURE_PAN (gesture);
   priv = gtk_gesture_pan_get_instance_private (pan);
@@ -204,8 +204,8 @@ gtk_gesture_pan_drag_update (GtkGestureDrag *gesture,
 
 static void
 gtk_gesture_pan_drag_end (GtkGestureDrag *gesture,
-                          gdouble         offset_x,
-                          gdouble         offset_y)
+                          double          offset_x,
+                          double          offset_y)
 {
   GtkGesturePanPrivate *priv;
 
index 7090caa4f211ee98d0da1019191d51661b2064d7..723c3f2696fbe6be6f27fc5a1133f3f626736941 100644 (file)
@@ -33,7 +33,7 @@ struct _GtkGesturePanClass
 
   void (* pan) (GtkGesturePan *gesture,
                 GtkPanDirection direction,
-                gdouble         offset);
+                double          offset);
 
   /*< private >*/
   gpointer padding[10];
index 5498244d77a0be500a007d4ab32a526a1ac32122..0ee3dd15a18c866e8c78d142194bbcab6858a3ca 100644 (file)
@@ -45,8 +45,8 @@ enum {
 
 struct _GtkGestureRotatePrivate
 {
-  gdouble initial_angle;
-  gdouble accum_touchpad_angle;
+  double initial_angle;
+  double accum_touchpad_angle;
 };
 
 static guint signals[LAST_SIGNAL] = { 0 };
@@ -75,13 +75,13 @@ gtk_gesture_rotate_constructor (GType                  type,
 
 static gboolean
 _gtk_gesture_rotate_get_angle (GtkGestureRotate *rotate,
-                               gdouble          *angle)
+                               double           *angle)
 {
   GtkGestureRotatePrivate *priv;
   GdkEvent *last_event;
-  gdouble x1, y1, x2, y2;
+  double x1, y1, x2, y2;
   GtkGesture *gesture;
-  gdouble dx, dy;
+  double dx, dy;
   GList *sequences = NULL;
   GdkTouchpadGesturePhase phase;
   gboolean retval = FALSE;
@@ -137,7 +137,7 @@ static gboolean
 _gtk_gesture_rotate_check_emit (GtkGestureRotate *gesture)
 {
   GtkGestureRotatePrivate *priv;
-  gdouble angle, delta;
+  double angle, delta;
 
   if (!_gtk_gesture_rotate_get_angle (gesture, &angle))
     return FALSE;
@@ -279,11 +279,11 @@ gtk_gesture_rotate_new (void)
  *
  * Returns: the angle delta in radians
  **/
-gdouble
+double
 gtk_gesture_rotate_get_angle_delta (GtkGestureRotate *gesture)
 {
   GtkGestureRotatePrivate *priv;
-  gdouble angle;
+  double angle;
 
   g_return_val_if_fail (GTK_IS_GESTURE_ROTATE (gesture), 0.0);
 
index 1c7529bd4af3e80e198dd4e8fab35776523a7da5..248eb078937d87895fa888a8abf95662db7ea5e6 100644 (file)
@@ -46,7 +46,7 @@ GDK_AVAILABLE_IN_ALL
 GtkGesture * gtk_gesture_rotate_new             (void);
 
 GDK_AVAILABLE_IN_ALL
-gdouble      gtk_gesture_rotate_get_angle_delta (GtkGestureRotate *gesture);
+double       gtk_gesture_rotate_get_angle_delta (GtkGestureRotate *gesture);
 
 G_END_DECLS
 
index 12c98705ad072bd53384adce5c05195a439aef21..c3805a43b137f288484f14cc451f8a7d9c59c489 100644 (file)
@@ -33,8 +33,8 @@ struct _GtkGestureRotateClass
   GtkGestureClass parent_class;
 
   void (* angle_changed) (GtkGestureRotate *gesture,
-                          gdouble           angle,
-                          gdouble           delta);
+                          double            angle,
+                          double            delta);
   /*< private >*/
   gpointer padding[10];
 };
index 0db2bb783758621ab306bfd7694baacae5ba1d5b..2341fb5a9ad05de44ae5c5e2c6a83d97252add39 100644 (file)
@@ -188,7 +188,7 @@ gesture_get_current_event (GtkGestureStylus *gesture)
 gboolean
 gtk_gesture_stylus_get_axis (GtkGestureStylus *gesture,
                             GdkAxisUse        axis,
-                            gdouble          *value)
+                            double           *value)
 {
   GdkEvent *event;
 
@@ -219,7 +219,7 @@ gtk_gesture_stylus_get_axis (GtkGestureStylus *gesture,
 gboolean
 gtk_gesture_stylus_get_axes (GtkGestureStylus  *gesture,
                             GdkAxisUse         axes[],
-                            gdouble          **values)
+                            double           **values)
 {
   GdkEvent *event;
   GArray *array;
@@ -232,11 +232,11 @@ gtk_gesture_stylus_get_axes (GtkGestureStylus  *gesture,
   if (!event)
     return FALSE;
 
-  array = g_array_new (TRUE, FALSE, sizeof (gdouble));
+  array = g_array_new (TRUE, FALSE, sizeof (double));
 
   while (axes[i] != GDK_AXIS_IGNORE)
     {
-      gdouble value;
+      double value;
 
       if (axes[i] >= GDK_AXIS_LAST)
         {
@@ -252,7 +252,7 @@ gtk_gesture_stylus_get_axes (GtkGestureStylus  *gesture,
       i++;
     }
 
-  *values = (gdouble *) g_array_free (array, FALSE);
+  *values = (double *) g_array_free (array, FALSE);
   return TRUE;
 }
 
index cb4c13efb68679fa879a9b11ee219ebf8548d077..df31f5277a0a4cf05a79b5ffd92f7f7eaa184a05 100644 (file)
@@ -46,11 +46,11 @@ GtkGesture *      gtk_gesture_stylus_new      (void);
 GDK_AVAILABLE_IN_ALL
 gboolean          gtk_gesture_stylus_get_axis (GtkGestureStylus *gesture,
                                               GdkAxisUse        axis,
-                                              gdouble          *value);
+                                              double           *value);
 GDK_AVAILABLE_IN_ALL
 gboolean          gtk_gesture_stylus_get_axes (GtkGestureStylus  *gesture,
                                               GdkAxisUse         axes[],
-                                              gdouble          **values);
+                                              double           **values);
 GDK_AVAILABLE_IN_ALL
 gboolean          gtk_gesture_stylus_get_backlog (GtkGestureStylus  *gesture,
                                                  GdkTimeCoord     **backlog,
index 9869b528a5530a5c0f8bc55288b33b4d47cefb72..c37e6383396574983b26c682c98966fd51c69252 100644 (file)
@@ -32,17 +32,17 @@ struct _GtkGestureStylusClass
   GtkGestureSingleClass parent_class;
 
   void (*proximity) (GtkGestureStylus *gesture,
-                     gdouble           x,
-                     gdouble           y);
+                     double            x,
+                     double            y);
   void (*down)      (GtkGestureStylus *gesture,
-                     gdouble           x,
-                     gdouble           y);
+                     double            x,
+                     double            y);
   void (*motion)    (GtkGestureStylus *gesture,
-                     gdouble           x,
-                     gdouble           y);
+                     double            x,
+                     double            y);
   void (*up)        (GtkGestureStylus *gesture,
-                     gdouble           x,
-                     gdouble           y);
+                     double            x,
+                     double            y);
 
   /*< private >*/
   gpointer padding[10];
index 41053840043204968f0bc96175032521255682c2..59c7aba8073101d02b06a2ddf29461eac245313e 100644 (file)
@@ -136,7 +136,7 @@ gtk_gesture_swipe_update (GtkGesture       *gesture,
   GtkGestureSwipe *swipe = GTK_GESTURE_SWIPE (gesture);
   GtkGestureSwipePrivate *priv;
   EventData new;
-  gdouble x, y;
+  double x, y;
 
   priv = gtk_gesture_swipe_get_instance_private (swipe);
   _gtk_gesture_get_last_update_time (gesture, sequence, &new.evtime);
@@ -151,14 +151,14 @@ gtk_gesture_swipe_update (GtkGesture       *gesture,
 
 static void
 _gtk_gesture_swipe_calculate_velocity (GtkGestureSwipe *gesture,
-                                       gdouble         *velocity_x,
-                                       gdouble         *velocity_y)
+                                       double          *velocity_x,
+                                       double          *velocity_y)
 {
   GtkGestureSwipePrivate *priv;
   GdkEventSequence *sequence;
   guint32 evtime, diff_time;
   EventData *start, *end;
-  gdouble diff_x, diff_y;
+  double diff_x, diff_y;
 
   priv = gtk_gesture_swipe_get_instance_private (gesture);
   *velocity_x = *velocity_y = 0;
@@ -191,7 +191,7 @@ gtk_gesture_swipe_end (GtkGesture       *gesture,
 {
   GtkGestureSwipe *swipe = GTK_GESTURE_SWIPE (gesture);
   GtkGestureSwipePrivate *priv;
-  gdouble velocity_x, velocity_y;
+  double velocity_x, velocity_y;
   GdkEventSequence *seq;
 
   seq = gtk_gesture_single_get_current_sequence (GTK_GESTURE_SINGLE (gesture));
@@ -283,10 +283,10 @@ gtk_gesture_swipe_new (void)
  **/
 gboolean
 gtk_gesture_swipe_get_velocity (GtkGestureSwipe *gesture,
-                                gdouble         *velocity_x,
-                                gdouble         *velocity_y)
+                                double          *velocity_x,
+                                double          *velocity_y)
 {
-  gdouble vel_x, vel_y;
+  double vel_x, vel_y;
 
   g_return_val_if_fail (GTK_IS_GESTURE (gesture), FALSE);
 
index 330ae7eb696af3a95299bd64b5cfd1ce8f8fef55..a85df6c3fc28d7e7d670663a49a77c0e49d5523f 100644 (file)
@@ -47,8 +47,8 @@ GtkGesture *    gtk_gesture_swipe_new           (void);
 
 GDK_AVAILABLE_IN_ALL
 gboolean        gtk_gesture_swipe_get_velocity  (GtkGestureSwipe *gesture,
-                                                 gdouble         *velocity_x,
-                                                 gdouble         *velocity_y);
+                                                 double          *velocity_x,
+                                                 double          *velocity_y);
 
 G_END_DECLS
 
index 660ee3a3a0684838df2d2ff4b4f28ad93456c6d4..6e41f2a691fb961db3d24b1a275ebf2128a0b2b5 100644 (file)
@@ -33,8 +33,8 @@ struct _GtkGestureSwipeClass
   GtkGestureSingleClass parent_class;
 
   void (* swipe) (GtkGestureSwipe *gesture,
-                  gdouble          velocity_x,
-                  gdouble          velocity_y);
+                  double           velocity_x,
+                  double           velocity_y);
 
   /*< private >*/
   gpointer padding[10];
index d706b502f3ace664a4b851207532e9715cf4f136..20b67c237b62e33cfdd872c51c8abdd9e82c8cfa 100644 (file)
@@ -45,7 +45,7 @@ enum {
 
 struct _GtkGestureZoomPrivate
 {
-  gdouble initial_distance;
+  double initial_distance;
 };
 
 static guint signals[LAST_SIGNAL] = { 0 };
@@ -74,13 +74,13 @@ gtk_gesture_zoom_constructor (GType                  type,
 
 static gboolean
 _gtk_gesture_zoom_get_distance (GtkGestureZoom *zoom,
-                                gdouble        *distance)
+                                double         *distance)
 {
   GdkEvent *last_event;
-  gdouble x1, y1, x2, y2;
+  double x1, y1, x2, y2;
   GtkGesture *gesture;
   GList *sequences = NULL;
-  gdouble dx, dy;
+  double dx, dy;
   GdkTouchpadGesturePhase phase;
   gboolean retval = FALSE;
 
@@ -131,7 +131,7 @@ static gboolean
 _gtk_gesture_zoom_check_emit (GtkGestureZoom *gesture)
 {
   GtkGestureZoomPrivate *priv;
-  gdouble distance, zoom;
+  double distance, zoom;
 
   if (!_gtk_gesture_zoom_get_distance (gesture, &distance))
     return FALSE;
@@ -241,11 +241,11 @@ gtk_gesture_zoom_new (void)
  *
  * Returns: the scale delta
  **/
-gdouble
+double
 gtk_gesture_zoom_get_scale_delta (GtkGestureZoom *gesture)
 {
   GtkGestureZoomPrivate *priv;
-  gdouble distance;
+  double distance;
 
   g_return_val_if_fail (GTK_IS_GESTURE_ZOOM (gesture), 1.0);
 
index 0a02852c581cfb2e451279d057abc4db2cfb4a1e..8c01affe6df8916d48c53d2ff5c4bb7f0c9b952e 100644 (file)
@@ -46,7 +46,7 @@ GDK_AVAILABLE_IN_ALL
 GtkGesture * gtk_gesture_zoom_new             (void);
 
 GDK_AVAILABLE_IN_ALL
-gdouble      gtk_gesture_zoom_get_scale_delta (GtkGestureZoom *gesture);
+double       gtk_gesture_zoom_get_scale_delta (GtkGestureZoom *gesture);
 
 G_END_DECLS
 
index 9935c097a7a16effa1a3cd53f84088047cbe7683..3c7e9da3316f7f71ddf8c77caacd835341aa1fb2 100644 (file)
@@ -33,7 +33,7 @@ struct _GtkGestureZoomClass
   GtkGestureClass parent_class;
 
   void (* scale_changed) (GtkGestureZoom *gesture,
-                          gdouble         scale);
+                          double          scale);
   /*< private >*/
   gpointer padding[10];
 };
index 78ccaec19f8242e9c2c18114ccad99e616204aba..abb4aaf68919e1a294c95fa4b75807b7fd9d8c7f 100644 (file)
@@ -43,12 +43,12 @@ void
 _gtk_hsla_init_from_rgba (GtkHSLA       *hsla,
                           const GdkRGBA *rgba)
 {
-  gdouble min;
-  gdouble max;
-  gdouble red;
-  gdouble green;
-  gdouble blue;
-  gdouble delta;
+  double min;
+  double max;
+  double red;
+  double green;
+  double blue;
+  double delta;
   
   g_return_if_fail (hsla != NULL);
   g_return_if_fail (rgba != NULL);
@@ -112,10 +112,10 @@ void
 _gdk_rgba_init_from_hsla (GdkRGBA       *rgba,
                           const GtkHSLA *hsla)
 {
-  gdouble hue;
-  gdouble lightness;
-  gdouble saturation;
-  gdouble m1, m2;
+  double hue;
+  double lightness;
+  double saturation;
+  double m1, m2;
   
   lightness = hsla->lightness;
   saturation = hsla->saturation;
index 58993600c9d3dcf8bd53f4ab684ceba8378fb9fb..c80c43fe22b34c23f91cd13a062febc2906bad94 100644 (file)
@@ -2562,11 +2562,11 @@ gtk_icon_view_set_hadjustment_values (GtkIconView *icon_view)
 {
   int width;
   GtkAdjustment *adj = icon_view->priv->hadjustment;
-  gdouble old_page_size;
-  gdouble old_upper;
-  gdouble old_value;
-  gdouble new_value;
-  gdouble new_upper;
+  double old_page_size;
+  double old_upper;
+  double old_value;
+  double new_value;
+  double new_upper;
 
   width = gtk_widget_get_width (GTK_WIDGET (icon_view));
 
index 9b0b48898c195634fef029ccda5c1aa78379a298..70b46e317f7606ef1231411fac760e0c3dfc0a17 100644 (file)
@@ -71,8 +71,8 @@ struct _GtkIMContextWayland
   GtkWidget *widget;
 
   GtkGesture *gesture;
-  gdouble press_x;
-  gdouble press_y;
+  double press_x;
+  double press_y;
 
   struct {
     char *text;
@@ -493,8 +493,8 @@ gtk_im_context_wayland_finalize (GObject *object)
 static void
 pressed_cb (GtkGestureClick     *gesture,
             int                  n_press,
-            gdouble              x,
-            gdouble              y,
+            double               x,
+            double               y,
             GtkIMContextWayland *context)
 {
   if (n_press == 1)
@@ -507,8 +507,8 @@ pressed_cb (GtkGestureClick     *gesture,
 static void
 released_cb (GtkGestureClick     *gesture,
              int                  n_press,
-             gdouble              x,
-             gdouble              y,
+             double               x,
+             double               y,
              GtkIMContextWayland *context)
 {
   GtkIMContextWaylandGlobal *global;
index db65bd092631a151e28acc2d2492a0a694a880c8..aa4f6f0726dd8ce8120198f882c8bf463e9e2676 100644 (file)
@@ -439,8 +439,8 @@ close_button_clicked_cb (GtkWidget  *button,
 static void
 click_released_cb (GtkGestureClick *gesture,
                    guint            n_press,
-                   gdouble          x,
-                   gdouble          y,
+                   double           x,
+                   double           y,
                    GtkInfoBar      *info_bar)
 {
   if (info_bar->default_response && info_bar->default_response_sensitive)
index 212319b9336e737f7dffaa14f87ad91618f9fd21..830fbe7dae5605358057445c9456fda5eb71ee88 100644 (file)
@@ -60,34 +60,34 @@ typedef enum {
 struct _GtkKineticScrolling
 {
   GtkKineticScrollingPhase phase;
-  gdouble lower;
-  gdouble upper;
-  gdouble overshoot_width;
-  gdouble decel_friction;
-  gdouble overshoot_friction;
-
-  gdouble c1;
-  gdouble c2;
-  gdouble equilibrium_position;
-
-  gdouble t;
-  gdouble position;
-  gdouble velocity;
+  double lower;
+  double upper;
+  double overshoot_width;
+  double decel_friction;
+  double overshoot_friction;
+
+  double c1;
+  double c2;
+  double equilibrium_position;
+
+  double t;
+  double position;
+  double velocity;
 };
 
 static void gtk_kinetic_scrolling_init_overshoot (GtkKineticScrolling *data,
-                                                  gdouble              equilibrium_position,
-                                                  gdouble              initial_position,
-                                                  gdouble              initial_velocity);
+                                                  double               equilibrium_position,
+                                                  double               initial_position,
+                                                  double               initial_velocity);
 
 GtkKineticScrolling *
-gtk_kinetic_scrolling_new (gdouble lower,
-                           gdouble upper,
-                           gdouble overshoot_width,
-                           gdouble decel_friction,
-                           gdouble overshoot_friction,
-                           gdouble initial_position,
-                           gdouble initial_velocity)
+gtk_kinetic_scrolling_new (double lower,
+                           double upper,
+                           double overshoot_width,
+                           double decel_friction,
+                           double overshoot_friction,
+                           double initial_position,
+                           double initial_velocity)
 {
   GtkKineticScrolling *data;
 
@@ -131,9 +131,9 @@ gtk_kinetic_scrolling_free (GtkKineticScrolling *kinetic)
 
 static void
 gtk_kinetic_scrolling_init_overshoot (GtkKineticScrolling *data,
-                                      gdouble              equilibrium_position,
-                                      gdouble              initial_position,
-                                      gdouble              initial_velocity)
+                                      double               equilibrium_position,
+                                      double               initial_position,
+                                      double               initial_velocity)
 {
   data->phase = GTK_KINETIC_SCROLLING_PHASE_OVERSHOOTING;
   data->equilibrium_position = equilibrium_position;
@@ -144,16 +144,16 @@ gtk_kinetic_scrolling_init_overshoot (GtkKineticScrolling *data,
 
 gboolean
 gtk_kinetic_scrolling_tick (GtkKineticScrolling *data,
-                            gdouble              time_delta,
-                            gdouble             *position)
+                            double               time_delta,
+                            double              *position)
 {
   switch(data->phase)
     {
     case GTK_KINETIC_SCROLLING_PHASE_DECELERATING:
       {
-        gdouble last_position = data->position;
-        gdouble last_time = data->t;
-        gdouble exp_part;
+        double last_position = data->position;
+        double last_time = data->t;
+        double exp_part;
 
         data->t += time_delta;
 
@@ -181,7 +181,7 @@ gtk_kinetic_scrolling_tick (GtkKineticScrolling *data,
 
     case GTK_KINETIC_SCROLLING_PHASE_OVERSHOOTING:
       {
-        gdouble exp_part, pos;
+        double exp_part, pos;
 
         data->t += time_delta;
         exp_part = exp(-data->overshoot_friction / 2 * data->t);
index 92883b8c1ca08fc1cd2e8b496cd7b7e94dc7418c..29f3eae2288816df2eb32633d24e6815101df487 100644 (file)
@@ -25,18 +25,18 @@ G_BEGIN_DECLS
 
 typedef struct _GtkKineticScrolling GtkKineticScrolling;
 
-GtkKineticScrolling *    gtk_kinetic_scrolling_new  (gdouble               lower,
-                                                     gdouble               upper,
-                                                     gdouble               overshoot_width,
-                                                     gdouble               decel_friction,
-                                                     gdouble               overshoot_friction,
-                                                     gdouble               initial_position,
-                                                     gdouble               initial_velocity);
+GtkKineticScrolling *    gtk_kinetic_scrolling_new  (double                lower,
+                                                     double                upper,
+                                                     double                overshoot_width,
+                                                     double                decel_friction,
+                                                     double                overshoot_friction,
+                                                     double                initial_position,
+                                                     double                initial_velocity);
 void                     gtk_kinetic_scrolling_free (GtkKineticScrolling  *kinetic);
 
 gboolean                 gtk_kinetic_scrolling_tick (GtkKineticScrolling  *data,
-                                                     gdouble               time_delta,
-                                                     gdouble              *position);
+                                                     double                time_delta,
+                                                     double               *position);
 
 G_END_DECLS
 
index 2d353ee6815ffd01e4fcda7e5951cef61980a5e9..b1926f45c6a41c2c890702bdf177b39c5afdd323 100644 (file)
@@ -475,8 +475,8 @@ static void gtk_label_select_region_index (GtkLabel *self,
                                            int       end_index);
 
 static void gtk_label_update_active_link  (GtkWidget *widget,
-                                           gdouble    x,
-                                           gdouble    y);
+                                           double     x,
+                                           double     y);
 
 static gboolean gtk_label_mnemonic_activate (GtkWidget         *widget,
                                             gboolean           group_cycling);
@@ -519,21 +519,21 @@ static void          emit_activate_link         (GtkLabel     *self,
 /* Event controller callbacks */
 static void   gtk_label_click_gesture_pressed  (GtkGestureClick *gesture,
                                                      int                   n_press,
-                                                     gdouble               x,
-                                                     gdouble               y,
+                                                     double                x,
+                                                     double                y,
                                                      GtkLabel             *self);
 static void   gtk_label_click_gesture_released (GtkGestureClick *gesture,
                                                      int                   n_press,
-                                                     gdouble               x,
-                                                     gdouble               y,
+                                                     double                x,
+                                                     double                y,
                                                      GtkLabel             *self);
 static void   gtk_label_drag_gesture_begin          (GtkGestureDrag *gesture,
-                                                     gdouble         start_x,
-                                                     gdouble         start_y,
+                                                     double          start_x,
+                                                     double          start_y,
                                                      GtkLabel       *self);
 static void   gtk_label_drag_gesture_update         (GtkGestureDrag *gesture,
-                                                     gdouble         offset_x,
-                                                     gdouble         offset_y,
+                                                     double          offset_x,
+                                                     double          offset_y,
                                                      GtkLabel       *self);
 
 /* Actions */
@@ -3912,8 +3912,8 @@ out:
 static void
 gtk_label_click_gesture_pressed (GtkGestureClick *gesture,
                                  int              n_press,
-                                 gdouble          widget_x,
-                                 gdouble          widget_y,
+                                 double           widget_x,
+                                 double           widget_y,
                                  GtkLabel        *self)
 {
   GtkLabelSelectionInfo *info = self->select_info;
@@ -3989,8 +3989,8 @@ gtk_label_click_gesture_pressed (GtkGestureClick *gesture,
 static void
 gtk_label_click_gesture_released (GtkGestureClick *gesture,
                                   int              n_press,
-                                  gdouble          x,
-                                  gdouble          y,
+                                  double           x,
+                                  double           y,
                                   GtkLabel        *self)
 {
   GtkLabelSelectionInfo *info = self->select_info;
@@ -4054,8 +4054,8 @@ get_selection_paintable (GtkLabel *self)
 
 static void
 gtk_label_drag_gesture_begin (GtkGestureDrag *gesture,
-                              gdouble         start_x,
-                              gdouble         start_y,
+                              double          start_x,
+                              double          start_y,
                               GtkLabel       *self)
 {
   GtkLabelSelectionInfo *info = self->select_info;
@@ -4122,14 +4122,14 @@ gtk_label_drag_gesture_begin (GtkGestureDrag *gesture,
 
 static void
 gtk_label_drag_gesture_update (GtkGestureDrag *gesture,
-                               gdouble         offset_x,
-                               gdouble         offset_y,
+                               double          offset_x,
+                               double          offset_y,
                                GtkLabel       *self)
 {
   GtkLabelSelectionInfo *info = self->select_info;
   GtkWidget *widget = GTK_WIDGET (self);
   GdkEventSequence *sequence;
-  gdouble x, y;
+  double x, y;
   int index;
 
   if (info == NULL || !info->selectable)
@@ -4215,8 +4215,8 @@ gtk_label_drag_gesture_update (GtkGestureDrag *gesture,
 
 static void
 gtk_label_update_active_link (GtkWidget *widget,
-                              gdouble    x,
-                              gdouble    y)
+                              double     x,
+                              double     y)
 {
   GtkLabel *self = GTK_LABEL (widget);
   GtkLabelSelectionInfo *info = self->select_info;
index 19942b55e8368096dc428d25140be88a035876f0..ace50c22029750c7b27db0974011cad595561660 100644 (file)
@@ -160,7 +160,7 @@ typedef struct _GtkLevelBarClass   GtkLevelBarClass;
 
 typedef struct {
   char *name;
-  gdouble value;
+  double value;
 } GtkLevelBarOffset;
 
 struct _GtkLevelBar {
@@ -170,9 +170,9 @@ struct _GtkLevelBar {
 
   GtkLevelBarMode bar_mode;
 
-  gdouble min_value;
-  gdouble max_value;
-  gdouble cur_value;
+  double min_value;
+  double max_value;
+  double cur_value;
 
   GList *offsets;
 
@@ -191,7 +191,7 @@ struct _GtkLevelBarClass {
 };
 
 static void gtk_level_bar_set_value_internal (GtkLevelBar *self,
-                                              gdouble      value);
+                                              double       value);
 
 static void gtk_level_bar_buildable_init (GtkBuildableIface *iface);
 
@@ -202,7 +202,7 @@ G_DEFINE_TYPE_WITH_CODE (GtkLevelBar, gtk_level_bar, GTK_TYPE_WIDGET,
 
 static GtkLevelBarOffset *
 gtk_level_bar_offset_new (const char *name,
-                          gdouble      value)
+                          double       value)
 {
   GtkLevelBarOffset *offset = g_slice_new0 (GtkLevelBarOffset);
 
@@ -242,7 +242,7 @@ offset_sort_func (gconstpointer a,
 static gboolean
 gtk_level_bar_ensure_offset (GtkLevelBar *self,
                              const char *name,
-                             gdouble      value)
+                             double       value)
 {
   GList *existing;
   GtkLevelBarOffset *offset = NULL;
@@ -271,7 +271,7 @@ gtk_level_bar_ensure_offset (GtkLevelBar *self,
 #ifndef G_DISABLE_CHECKS
 static gboolean
 gtk_level_bar_value_in_interval (GtkLevelBar *self,
-                                 gdouble      value)
+                                 double       value)
 {
   return ((value >= self->min_value) &&
           (value <= self->max_value));
@@ -411,7 +411,7 @@ gtk_level_bar_allocate_trough_continuous (GtkLevelBar *self,
                                           int          baseline)
 {
   GtkAllocation block_area;
-  gdouble fill_percentage;
+  double fill_percentage;
   gboolean inverted;
   int block_min;
 
@@ -569,7 +569,7 @@ update_mode_style_classes (GtkLevelBar *self)
 static void
 update_level_style_classes (GtkLevelBar *self)
 {
-  gdouble value;
+  double value;
   const char *value_class = NULL;
   GtkLevelBarOffset *offset, *prev_offset;
   GList *l;
@@ -1070,8 +1070,8 @@ gtk_level_bar_new (void)
  * Returns: a #GtkLevelBar
  */
 GtkWidget *
-gtk_level_bar_new_for_interval (gdouble min_value,
-                                gdouble max_value)
+gtk_level_bar_new_for_interval (double min_value,
+                                double max_value)
 {
   return g_object_new (GTK_TYPE_LEVEL_BAR,
                        "min-value", min_value,
@@ -1087,7 +1087,7 @@ gtk_level_bar_new_for_interval (gdouble min_value,
  *
  * Returns: a positive value
  */
-gdouble
+double
 gtk_level_bar_get_min_value (GtkLevelBar *self)
 {
   g_return_val_if_fail (GTK_IS_LEVEL_BAR (self), 0.0);
@@ -1103,7 +1103,7 @@ gtk_level_bar_get_min_value (GtkLevelBar *self)
  *
  * Returns: a positive value
  */
-gdouble
+double
 gtk_level_bar_get_max_value (GtkLevelBar *self)
 {
   g_return_val_if_fail (GTK_IS_LEVEL_BAR (self), 0.0);
@@ -1120,7 +1120,7 @@ gtk_level_bar_get_max_value (GtkLevelBar *self)
  * Returns: a value in the interval between
  *     #GtkLevelBar:min-value and #GtkLevelBar:max-value
  */
-gdouble
+double
 gtk_level_bar_get_value (GtkLevelBar *self)
 {
   g_return_val_if_fail (GTK_IS_LEVEL_BAR (self), 0.0);
@@ -1130,7 +1130,7 @@ gtk_level_bar_get_value (GtkLevelBar *self)
 
 static void
 gtk_level_bar_set_value_internal (GtkLevelBar *self,
-                                  gdouble      value)
+                                  double       value)
 {
   self->cur_value = value;
 
@@ -1151,7 +1151,7 @@ gtk_level_bar_set_value_internal (GtkLevelBar *self,
  */
 void
 gtk_level_bar_set_min_value (GtkLevelBar *self,
-                             gdouble      value)
+                             double       value)
 {
   g_return_if_fail (GTK_IS_LEVEL_BAR (self));
   g_return_if_fail (value >= 0.0);
@@ -1181,7 +1181,7 @@ gtk_level_bar_set_min_value (GtkLevelBar *self,
  */
 void
 gtk_level_bar_set_max_value (GtkLevelBar *self,
-                             gdouble      value)
+                             double       value)
 {
   g_return_if_fail (GTK_IS_LEVEL_BAR (self));
   g_return_if_fail (value >= 0.0);
@@ -1210,7 +1210,7 @@ gtk_level_bar_set_max_value (GtkLevelBar *self,
  */
 void
 gtk_level_bar_set_value (GtkLevelBar *self,
-                         gdouble      value)
+                         double       value)
 {
   g_return_if_fail (GTK_IS_LEVEL_BAR (self));
 
@@ -1344,7 +1344,7 @@ gtk_level_bar_remove_offset_value (GtkLevelBar *self,
 void
 gtk_level_bar_add_offset_value (GtkLevelBar *self,
                                 const char *name,
-                                gdouble      value)
+                                double       value)
 {
   GQuark name_quark;
 
@@ -1373,7 +1373,7 @@ gtk_level_bar_add_offset_value (GtkLevelBar *self,
 gboolean
 gtk_level_bar_get_offset_value (GtkLevelBar *self,
                                 const char *name,
-                                gdouble     *value)
+                                double      *value)
 {
   GList *existing;
   GtkLevelBarOffset *offset = NULL;
index 33a03c4c7cbe3bcaefa761fde1b43c801354663c..4444eadfb5b49122f5dcfb43d3d4ae26c2a8e2af 100644 (file)
@@ -64,8 +64,8 @@ GDK_AVAILABLE_IN_ALL
 GtkWidget *gtk_level_bar_new                (void);
 
 GDK_AVAILABLE_IN_ALL
-GtkWidget *gtk_level_bar_new_for_interval   (gdouble      min_value,
-                                             gdouble      max_value);
+GtkWidget *gtk_level_bar_new_for_interval   (double       min_value,
+                                             double       max_value);
 
 GDK_AVAILABLE_IN_ALL
 void       gtk_level_bar_set_mode           (GtkLevelBar *self,
@@ -75,21 +75,21 @@ GtkLevelBarMode gtk_level_bar_get_mode      (GtkLevelBar *self);
 
 GDK_AVAILABLE_IN_ALL
 void       gtk_level_bar_set_value          (GtkLevelBar *self,
-                                             gdouble      value);
+                                             double       value);
 GDK_AVAILABLE_IN_ALL
-gdouble    gtk_level_bar_get_value          (GtkLevelBar *self);
+double     gtk_level_bar_get_value          (GtkLevelBar *self);
 
 GDK_AVAILABLE_IN_ALL
 void       gtk_level_bar_set_min_value      (GtkLevelBar *self,
-                                             gdouble      value);
+                                             double       value);
 GDK_AVAILABLE_IN_ALL
-gdouble    gtk_level_bar_get_min_value      (GtkLevelBar *self);
+double     gtk_level_bar_get_min_value      (GtkLevelBar *self);
 
 GDK_AVAILABLE_IN_ALL
 void       gtk_level_bar_set_max_value      (GtkLevelBar *self,
-                                             gdouble      value);
+                                             double       value);
 GDK_AVAILABLE_IN_ALL
-gdouble    gtk_level_bar_get_max_value      (GtkLevelBar *self);
+double     gtk_level_bar_get_max_value      (GtkLevelBar *self);
 
 GDK_AVAILABLE_IN_ALL
 void       gtk_level_bar_set_inverted       (GtkLevelBar *self,
@@ -101,14 +101,14 @@ gboolean   gtk_level_bar_get_inverted       (GtkLevelBar *self);
 GDK_AVAILABLE_IN_ALL
 void       gtk_level_bar_add_offset_value   (GtkLevelBar *self,
                                              const char *name,
-                                             gdouble      value);
+                                             double       value);
 GDK_AVAILABLE_IN_ALL
 void       gtk_level_bar_remove_offset_value (GtkLevelBar *self,
                                               const char *name);
 GDK_AVAILABLE_IN_ALL
 gboolean   gtk_level_bar_get_offset_value   (GtkLevelBar *self,
                                              const char *name,
-                                             gdouble     *value);
+                                             double      *value);
 
 G_END_DECLS
 
index 7b9affd94e1d1ab515cdb403551b94dfdee412de..3d3a1a720a761e956ba996556bada80c91f650b9 100644 (file)
@@ -281,17 +281,17 @@ static void                 gtk_list_box_set_accept_unpaired_release    (GtkList
 
 static void gtk_list_box_click_gesture_pressed  (GtkGestureClick  *gesture,
                                                  guint             n_press,
-                                                 gdouble           x,
-                                                 gdouble           y,
+                                                 double            x,
+                                                 double            y,
                                                  GtkListBox       *box);
 static void gtk_list_box_click_gesture_released (GtkGestureClick  *gesture,
                                                  guint             n_press,
-                                                 gdouble           x,
-                                                 gdouble           y,
+                                                 double            x,
+                                                 double            y,
                                                  GtkListBox       *box);
 static void gtk_list_box_click_unpaired_release (GtkGestureClick  *gesture,
-                                                 gdouble           x,
-                                                 gdouble           y,
+                                                 double            x,
+                                                 double            y,
                                                  guint             button,
                                                  GdkEventSequence *sequence,
                                                  GtkListBox       *box);
@@ -1782,8 +1782,8 @@ gtk_list_box_select_and_activate_full (GtkListBox    *box,
 static void
 gtk_list_box_click_gesture_pressed (GtkGestureClick *gesture,
                                     guint            n_press,
-                                    gdouble          x,
-                                    gdouble          y,
+                                    double           x,
+                                    double           y,
                                     GtkListBox      *box)
 {
   GtkListBoxRow *row;
@@ -1802,8 +1802,8 @@ gtk_list_box_click_gesture_pressed (GtkGestureClick *gesture,
 
 static void
 gtk_list_box_click_unpaired_release (GtkGestureClick  *gesture,
-                                     gdouble           x,
-                                     gdouble           y,
+                                     double            x,
+                                     double            y,
                                      guint             button,
                                      GdkEventSequence *sequence,
                                      GtkListBox       *box)
@@ -1822,8 +1822,8 @@ gtk_list_box_click_unpaired_release (GtkGestureClick  *gesture,
 static void
 gtk_list_box_click_gesture_released (GtkGestureClick *gesture,
                                      guint            n_press,
-                                     gdouble          x,
-                                     gdouble          y,
+                                     double           x,
+                                     double           y,
                                      GtkListBox      *box)
 {
   /* Take a ref to protect against reentrancy
index 358690fea8743fc610b195ecc6eb5c34856a872a..d38a82ff579fe8b7f5787a6e62c0cac82938b99f 100644 (file)
@@ -33,7 +33,7 @@ typedef struct _GtkMagnifierPrivate GtkMagnifierPrivate;
 struct _GtkMagnifierPrivate
 {
   GdkPaintable *paintable;
-  gdouble magnification;
+  double magnification;
   int x;
   int y;
   gboolean resize;
@@ -253,8 +253,8 @@ _gtk_magnifier_set_inspected (GtkMagnifier *magnifier,
 
 void
 _gtk_magnifier_set_coords (GtkMagnifier *magnifier,
-                           gdouble       x,
-                           gdouble       y)
+                           double        x,
+                           double        y)
 {
   GtkMagnifierPrivate *priv;
 
@@ -274,8 +274,8 @@ _gtk_magnifier_set_coords (GtkMagnifier *magnifier,
 
 void
 _gtk_magnifier_get_coords (GtkMagnifier *magnifier,
-                           gdouble      *x,
-                           gdouble      *y)
+                           double       *x,
+                           double       *y)
 {
   GtkMagnifierPrivate *priv;
 
@@ -292,7 +292,7 @@ _gtk_magnifier_get_coords (GtkMagnifier *magnifier,
 
 void
 _gtk_magnifier_set_magnification (GtkMagnifier *magnifier,
-                                  gdouble       magnification)
+                                  double        magnification)
 {
   GtkMagnifierPrivate *priv;
 
@@ -313,7 +313,7 @@ _gtk_magnifier_set_magnification (GtkMagnifier *magnifier,
     gtk_widget_queue_draw (GTK_WIDGET (magnifier));
 }
 
-gdouble
+double
 _gtk_magnifier_get_magnification (GtkMagnifier *magnifier)
 {
   GtkMagnifierPrivate *priv;
index 7ce84cc1a44e0cd17018ca8b7640cdae8d5e1117..8d46cdcdd804872e4a590cfac5d1e4fb634469f3 100644 (file)
@@ -49,15 +49,15 @@ void        _gtk_magnifier_set_inspected     (GtkMagnifier *magnifier,
                                               GtkWidget    *inspected);
 
 void        _gtk_magnifier_set_coords        (GtkMagnifier *magnifier,
-                                              gdouble       x,
-                                              gdouble       y);
+                                              double        x,
+                                              double        y);
 void        _gtk_magnifier_get_coords        (GtkMagnifier *magnifier,
-                                              gdouble      *x,
-                                              gdouble      *y);
+                                              double       *x,
+                                              double       *y);
 
 void        _gtk_magnifier_set_magnification (GtkMagnifier *magnifier,
-                                              gdouble       magnification);
-gdouble     _gtk_magnifier_get_magnification (GtkMagnifier *magnifier);
+                                              double        magnification);
+double      _gtk_magnifier_get_magnification (GtkMagnifier *magnifier);
 
 void        _gtk_magnifier_set_resize        (GtkMagnifier *magnifier,
                                               gboolean      resize);
index 7334e54a71ea905869b3741ed124112582f84343..899d1fd688b5fab902307b7b379d19cd582fee27 100644 (file)
@@ -13,7 +13,7 @@
 #   ENUM        for enumeration types (int)
 #   FLAGS       for flag enumeration types (guint)
 #   FLOAT       for single-precision float types (float)
-#   DOUBLE      for double-precision float types (gdouble)
+#   DOUBLE      for double-precision float types (double)
 #   STRING      for string types (char *)
 #   BOXED       for boxed (anonymous but reference counted) types (GBoxed*)
 #   POINTER     for anonymous pointer types (gpointer)
index a96e70447571eee003dcaf0cba429ff42aceb5cc..fea2d3064d683c3fb792e92c9967df9028ae2192 100644 (file)
@@ -2430,8 +2430,8 @@ gtk_notebook_page_tab_label_is_visible (GtkNotebookPage *page)
 
 static gboolean
 in_tabs (GtkNotebook *notebook,
-         gdouble      x,
-         gdouble      y)
+         double       x,
+         double       y)
 {
   graphene_rect_t tabs_bounds;
 
@@ -2444,8 +2444,8 @@ in_tabs (GtkNotebook *notebook,
 
 static GList*
 get_tab_at_pos (GtkNotebook *notebook,
-                gdouble      x,
-                gdouble      y)
+                double       x,
+                double       y)
 {
   GtkNotebookPage *page;
   GList *children;
index 8fe2b39108b29a5266e37ac95d88c4c8345228b0..df589682ad4af98d91598f1b4ffa0aa03d6a81cd 100644 (file)
@@ -150,7 +150,7 @@ gtk_pad_controller_activate_action (GtkPadController        *controller,
 static void
 gtk_pad_controller_activate_action_with_axis (GtkPadController        *controller,
                                               const ActionEntryData   *entry,
-                                              gdouble                  value)
+                                              double                   value)
 {
   g_action_group_activate_action (controller->action_group,
                                   entry->action_name,
@@ -227,7 +227,7 @@ gtk_pad_controller_handle_event (GtkEventController *controller,
   const ActionEntryData *entry;
   GtkPadActionType type;
   guint index, mode, group;
-  gdouble value = 0;
+  double value = 0;
 
   gdk_pad_event_get_group_mode (event, &group, &mode);
   if (event_type == GDK_PAD_GROUP_MODE)
index 94f774878558a4234d8f2b440bb9da3f1c6e2f6a..0bebbab5436964265595947168c4e07a32b276de 100644 (file)
@@ -264,7 +264,7 @@ gtk_page_setup_set_paper_size_and_default_margins (GtkPageSetup *setup,
  * 
  * Returns: the top margin
  */
-gdouble
+double
 gtk_page_setup_get_top_margin (GtkPageSetup *setup,
                               GtkUnit       unit)
 {
@@ -281,7 +281,7 @@ gtk_page_setup_get_top_margin (GtkPageSetup *setup,
  */
 void
 gtk_page_setup_set_top_margin (GtkPageSetup *setup,
-                              gdouble       margin,
+                              double        margin,
                               GtkUnit       unit)
 {
   setup->top_margin = _gtk_print_convert_to_mm (margin, unit);
@@ -296,7 +296,7 @@ gtk_page_setup_set_top_margin (GtkPageSetup *setup,
  * 
  * Returns: the bottom margin
  */
-gdouble
+double
 gtk_page_setup_get_bottom_margin (GtkPageSetup *setup,
                                  GtkUnit       unit)
 {
@@ -313,7 +313,7 @@ gtk_page_setup_get_bottom_margin (GtkPageSetup *setup,
  */
 void
 gtk_page_setup_set_bottom_margin (GtkPageSetup *setup,
-                                 gdouble       margin,
+                                 double        margin,
                                  GtkUnit       unit)
 {
   setup->bottom_margin = _gtk_print_convert_to_mm (margin, unit);
@@ -328,7 +328,7 @@ gtk_page_setup_set_bottom_margin (GtkPageSetup *setup,
  * 
  * Returns: the left margin
  */
-gdouble
+double
 gtk_page_setup_get_left_margin (GtkPageSetup *setup,
                                GtkUnit       unit)
 {
@@ -345,7 +345,7 @@ gtk_page_setup_get_left_margin (GtkPageSetup *setup,
  */
 void
 gtk_page_setup_set_left_margin (GtkPageSetup *setup,
-                               gdouble       margin,
+                               double        margin,
                                GtkUnit       unit)
 {
   setup->left_margin = _gtk_print_convert_to_mm (margin, unit);
@@ -360,7 +360,7 @@ gtk_page_setup_set_left_margin (GtkPageSetup *setup,
  * 
  * Returns: the right margin
  */
-gdouble
+double
 gtk_page_setup_get_right_margin (GtkPageSetup *setup,
                                 GtkUnit       unit)
 {
@@ -377,7 +377,7 @@ gtk_page_setup_get_right_margin (GtkPageSetup *setup,
  */
 void
 gtk_page_setup_set_right_margin (GtkPageSetup *setup,
-                                gdouble       margin,
+                                double        margin,
                                 GtkUnit       unit)
 {
   setup->right_margin = _gtk_print_convert_to_mm (margin, unit);
@@ -396,7 +396,7 @@ gtk_page_setup_set_right_margin (GtkPageSetup *setup,
  *
  * Returns: the paper width.
  */
-gdouble
+double
 gtk_page_setup_get_paper_width (GtkPageSetup *setup,
                                GtkUnit       unit)
 {
@@ -420,7 +420,7 @@ gtk_page_setup_get_paper_width (GtkPageSetup *setup,
  *
  * Returns: the paper height.
  */
-gdouble
+double
 gtk_page_setup_get_paper_height (GtkPageSetup *setup,
                                 GtkUnit       unit)
 {
@@ -444,11 +444,11 @@ gtk_page_setup_get_paper_height (GtkPageSetup *setup,
  *
  * Returns: the page width.
  */
-gdouble
+double
 gtk_page_setup_get_page_width (GtkPageSetup *setup,
                               GtkUnit       unit)
 {
-  gdouble width;
+  double width;
 
   width = gtk_page_setup_get_paper_width (setup, GTK_UNIT_MM);
   if (setup->orientation == GTK_PAGE_ORIENTATION_PORTRAIT ||
@@ -473,11 +473,11 @@ gtk_page_setup_get_page_width (GtkPageSetup *setup,
  *
  * Returns: the page height.
  */
-gdouble
+double
 gtk_page_setup_get_page_height (GtkPageSetup *setup,
                                GtkUnit       unit)
 {
-  gdouble height;
+  double height;
 
   height = gtk_page_setup_get_paper_height (setup, GTK_UNIT_MM);
   if (setup->orientation == GTK_PAGE_ORIENTATION_PORTRAIT ||
@@ -589,7 +589,7 @@ gtk_page_setup_load_key_file (GtkPageSetup *setup,
                               GError      **error)
 {
   GtkPaperSize *paper_size;
-  gdouble top, bottom, left, right;
+  double top, bottom, left, right;
   char *orientation = NULL, *freeme = NULL;
   gboolean retval = FALSE;
   GError *err = NULL;
@@ -840,7 +840,7 @@ gtk_page_setup_new_from_gvariant (GVariant *variant)
 {
   GtkPageSetup *setup;
   const char *orientation;
-  gdouble margin;
+  double margin;
   GtkPaperSize *paper_size;
 
   g_return_val_if_fail (g_variant_is_of_type (variant, G_VARIANT_TYPE_VARDICT), NULL);
index 7c081e1cd27e275a16a608b991136cb29ff8ca29..461861e8c929c28cf566a583a0989fedccf3c5f0 100644 (file)
@@ -52,32 +52,32 @@ GDK_AVAILABLE_IN_ALL
 void               gtk_page_setup_set_paper_size    (GtkPageSetup       *setup,
                                                     GtkPaperSize       *size);
 GDK_AVAILABLE_IN_ALL
-gdouble            gtk_page_setup_get_top_margin    (GtkPageSetup       *setup,
+double             gtk_page_setup_get_top_margin    (GtkPageSetup       *setup,
                                                     GtkUnit             unit);
 GDK_AVAILABLE_IN_ALL
 void               gtk_page_setup_set_top_margin    (GtkPageSetup       *setup,
-                                                    gdouble             margin,
+                                                    double              margin,
                                                     GtkUnit             unit);
 GDK_AVAILABLE_IN_ALL
-gdouble            gtk_page_setup_get_bottom_margin (GtkPageSetup       *setup,
+double             gtk_page_setup_get_bottom_margin (GtkPageSetup       *setup,
                                                     GtkUnit             unit);
 GDK_AVAILABLE_IN_ALL
 void               gtk_page_setup_set_bottom_margin (GtkPageSetup       *setup,
-                                                    gdouble             margin,
+                                                    double              margin,
                                                     GtkUnit             unit);
 GDK_AVAILABLE_IN_ALL
-gdouble            gtk_page_setup_get_left_margin   (GtkPageSetup       *setup,
+double             gtk_page_setup_get_left_margin   (GtkPageSetup       *setup,
                                                     GtkUnit             unit);
 GDK_AVAILABLE_IN_ALL
 void               gtk_page_setup_set_left_margin   (GtkPageSetup       *setup,
-                                                    gdouble             margin,
+                                                    double              margin,
                                                     GtkUnit             unit);
 GDK_AVAILABLE_IN_ALL
-gdouble            gtk_page_setup_get_right_margin  (GtkPageSetup       *setup,
+double             gtk_page_setup_get_right_margin  (GtkPageSetup       *setup,
                                                     GtkUnit             unit);
 GDK_AVAILABLE_IN_ALL
 void               gtk_page_setup_set_right_margin  (GtkPageSetup       *setup,
-                                                    gdouble             margin,
+                                                    double              margin,
                                                     GtkUnit             unit);
 
 GDK_AVAILABLE_IN_ALL
@@ -86,19 +86,19 @@ void gtk_page_setup_set_paper_size_and_default_margins (GtkPageSetup    *setup,
 
 /* These take orientation, but not margins into consideration */
 GDK_AVAILABLE_IN_ALL
-gdouble            gtk_page_setup_get_paper_width   (GtkPageSetup       *setup,
+double             gtk_page_setup_get_paper_width   (GtkPageSetup       *setup,
                                                     GtkUnit             unit);
 GDK_AVAILABLE_IN_ALL
-gdouble            gtk_page_setup_get_paper_height  (GtkPageSetup       *setup,
+double             gtk_page_setup_get_paper_height  (GtkPageSetup       *setup,
                                                     GtkUnit             unit);
 
 
 /* These take orientation, and margins into consideration */
 GDK_AVAILABLE_IN_ALL
-gdouble            gtk_page_setup_get_page_width    (GtkPageSetup       *setup,
+double             gtk_page_setup_get_page_width    (GtkPageSetup       *setup,
                                                     GtkUnit             unit);
 GDK_AVAILABLE_IN_ALL
-gdouble            gtk_page_setup_get_page_height   (GtkPageSetup       *setup,
+double             gtk_page_setup_get_page_height   (GtkPageSetup       *setup,
                                                     GtkUnit             unit);
 
 /* Saving and restoring page setup */
index d641151b95fd19ad32e4b65e9fc75bf29c3b3d6a..c0743deaee4d0cffda4f114a2e4039ee50fe1ec5 100644 (file)
@@ -602,7 +602,7 @@ printer_changed_callback (GtkDropDown            *combo_box,
    after the decimal point, and not to many such digits if they
    are nonzero. I wish printf let you specify max precision for %f... */
 static char *
-double_to_string (gdouble d,
+double_to_string (double d,
                   GtkUnit unit)
 {
   char *val, *p;
index a930450e64ebec3f08fb9312ae1263fe563e76f8..a8873a62936d49f90edcc441935f86265ba2a066 100644 (file)
@@ -831,8 +831,8 @@ gtk_paned_buildable_iface_init (GtkBuildableIface *iface)
 
 static gboolean
 initiates_touch_drag (GtkPaned *paned,
-                      gdouble   start_x,
-                      gdouble   start_y)
+                      double    start_x,
+                      double    start_y)
 {
   int handle_size, handle_pos, drag_pos;
   graphene_rect_t handle_area;
@@ -864,8 +864,8 @@ initiates_touch_drag (GtkPaned *paned,
 
 static void
 gesture_drag_begin_cb (GtkGestureDrag *gesture,
-                       gdouble         start_x,
-                       gdouble         start_y,
+                       double          start_x,
+                       double          start_y,
                        GtkPaned       *paned)
 {
   GdkEventSequence *sequence;
@@ -914,11 +914,11 @@ gesture_drag_begin_cb (GtkGestureDrag *gesture,
 
 static void
 gesture_drag_update_cb (GtkGestureDrag   *gesture,
-                        gdouble           offset_x,
-                        gdouble           offset_y,
+                        double            offset_x,
+                        double            offset_y,
                         GtkPaned         *paned)
 {
-  gdouble start_x, start_y;
+  double start_x, start_y;
 
   gtk_gesture_drag_get_start_point (GTK_GESTURE_DRAG (gesture),
                                &start_x, &start_y);
@@ -927,8 +927,8 @@ gesture_drag_update_cb (GtkGestureDrag   *gesture,
 
 static void
 gesture_drag_end_cb (GtkGestureDrag *gesture,
-                     gdouble         offset_x,
-                     gdouble         offset_y,
+                     double          offset_x,
+                     double          offset_y,
                      GtkPaned       *paned)
 {
   if (!paned->panning)
@@ -1080,7 +1080,7 @@ gtk_paned_compute_position (GtkPaned *paned,
       else if (!paned->resize_start_child && paned->resize_end_child)
         pos = start_child_req;
       else if (start_child_req + end_child_req != 0)
-        pos = allocation * ((gdouble)start_child_req / (start_child_req + end_child_req)) + 0.5;
+        pos = allocation * ((double)start_child_req / (start_child_req + end_child_req)) + 0.5;
       else
         pos = allocation * 0.5 + 0.5;
     }
@@ -1094,7 +1094,7 @@ gtk_paned_compute_position (GtkPaned *paned,
           if (paned->resize_start_child && !paned->resize_end_child)
             pos = paned->start_child_size + allocation - paned->last_allocation;
           else if (!(!paned->resize_start_child && paned->resize_end_child))
-            pos = allocation * ((gdouble) paned->start_child_size / (paned->last_allocation)) + 0.5;
+            pos = allocation * ((double) paned->start_child_size / (paned->last_allocation)) + 0.5;
           else
             pos = paned->start_child_size;
         }
index 7dbddd65af43a43bd053a608163c620db6ba0d64..d076f3059cd9238d6cf08dd8c17f3473593295ba 100644 (file)
@@ -68,7 +68,7 @@ struct _GtkPaperSize
   char *display_name;
   char *ppd_name;
 
-  gdouble width, height; /* Stored in mm */
+  double width, height; /* Stored in mm */
   gboolean is_custom;
   gboolean is_ipp;
 };
@@ -103,8 +103,8 @@ lookup_paper_info (const char *name)
 
 static gboolean
 parse_media_size (const char *size,
-                  gdouble     *width_mm,
-                  gdouble     *height_mm)
+                  double      *width_mm,
+                  double      *height_mm)
 {
   const char *p;
   char *e;
@@ -145,8 +145,8 @@ parse_media_size (const char *size,
 static gboolean
 parse_full_media_size_name (const char   *full_name,
                             char        **name,
-                            gdouble      *width_mm,
-                            gdouble      *height_mm)
+                            double       *width_mm,
+                            double       *height_mm)
 {
   const char *p;
   const char *end_of_name;
@@ -313,8 +313,8 @@ improve_displayname (const char *name)
 GtkPaperSize *
 gtk_paper_size_new_from_ppd (const char *ppd_name,
                              const char *ppd_display_name,
-                             gdouble      width,
-                             gdouble      height)
+                             double       width,
+                             double       height)
 {
   char *name;
   const char *lookup_ppd_name;
@@ -391,8 +391,8 @@ gtk_paper_size_new_from_ppd (const char *ppd_name,
  */
 GtkPaperSize *
 gtk_paper_size_new_from_ipp (const char *ipp_name,
-                             gdouble      width,
-                             gdouble      height)
+                             double       width,
+                             double       height)
 {
   GtkPaperSize *size;
   const char   *name = NULL;
@@ -479,8 +479,8 @@ gtk_paper_size_new_from_ipp (const char *ipp_name,
 GtkPaperSize *
 gtk_paper_size_new_custom (const char *name,
                            const char *display_name,
-                           gdouble      width,
-                           gdouble      height,
+                           double       width,
+                           double       height,
                            GtkUnit      unit)
 {
   GtkPaperSize *size;
@@ -681,7 +681,7 @@ gtk_paper_size_get_ppd_name (GtkPaperSize *size)
  *
  * Returns: the paper width
  */
-gdouble
+double
 gtk_paper_size_get_width (GtkPaperSize *size,
                           GtkUnit       unit)
 {
@@ -698,7 +698,7 @@ gtk_paper_size_get_width (GtkPaperSize *size,
  *
  * Returns: the paper height
  */
-gdouble
+double
 gtk_paper_size_get_height (GtkPaperSize *size,
                            GtkUnit       unit)
 {
@@ -744,8 +744,8 @@ gtk_paper_size_is_ipp (GtkPaperSize *size)
  */
 void
 gtk_paper_size_set_size (GtkPaperSize *size,
-                         gdouble       width,
-                         gdouble       height,
+                         double        width,
+                         double        height,
                          GtkUnit       unit)
 {
   g_return_if_fail (size != NULL);
@@ -833,11 +833,11 @@ gtk_paper_size_get_default (void)
  *
  * Returns: the default top margin
  */
-gdouble
+double
 gtk_paper_size_get_default_top_margin (GtkPaperSize *size,
                                        GtkUnit       unit)
 {
-  gdouble margin;
+  double margin;
 
   margin = _gtk_print_convert_to_mm (0.25, GTK_UNIT_INCH);
   return _gtk_print_convert_from_mm (margin, unit);
@@ -852,11 +852,11 @@ gtk_paper_size_get_default_top_margin (GtkPaperSize *size,
  *
  * Returns: the default bottom margin
  */
-gdouble
+double
 gtk_paper_size_get_default_bottom_margin (GtkPaperSize *size,
                                           GtkUnit       unit)
 {
-  gdouble margin;
+  double margin;
   const char *name;
 
   margin = _gtk_print_convert_to_mm (0.25, GTK_UNIT_INCH);
@@ -879,11 +879,11 @@ gtk_paper_size_get_default_bottom_margin (GtkPaperSize *size,
  *
  * Returns: the default left margin
  */
-gdouble
+double
 gtk_paper_size_get_default_left_margin (GtkPaperSize *size,
                                         GtkUnit       unit)
 {
-  gdouble margin;
+  double margin;
 
   margin = _gtk_print_convert_to_mm (0.25, GTK_UNIT_INCH);
   return _gtk_print_convert_from_mm (margin, unit);
@@ -898,11 +898,11 @@ gtk_paper_size_get_default_left_margin (GtkPaperSize *size,
  *
  * Returns: the default right margin
  */
-gdouble
+double
 gtk_paper_size_get_default_right_margin (GtkPaperSize *size,
                                          GtkUnit       unit)
 {
-  gdouble margin;
+  double margin;
 
   margin = _gtk_print_convert_to_mm (0.25, GTK_UNIT_INCH);
   return _gtk_print_convert_from_mm (margin, unit);
@@ -931,7 +931,7 @@ gtk_paper_size_new_from_key_file (GKeyFile     *key_file,
   char *ppd_name = NULL;
   char *display_name = NULL;
   char *freeme = NULL;
-  gdouble width, height;
+  double width, height;
   GError *err = NULL;
 
   g_return_val_if_fail (key_file != NULL, NULL);
@@ -1089,7 +1089,7 @@ gtk_paper_size_new_from_gvariant (GVariant *variant)
   const char *name;
   const char *ppd_name;
   const char *display_name;
-  gdouble width, height;
+  double width, height;
 
   g_return_val_if_fail (g_variant_is_of_type (variant, G_VARIANT_TYPE_VARDICT), NULL);
 
index 04e7389fab1c73e519d1e7626e48281691de496f..20e4239e8e32e90a9db65f13046a1690ccb73d3f 100644 (file)
@@ -92,17 +92,17 @@ GtkPaperSize *gtk_paper_size_new          (const char   *name);
 GDK_AVAILABLE_IN_ALL
 GtkPaperSize *gtk_paper_size_new_from_ppd (const char   *ppd_name,
                                           const char   *ppd_display_name,
-                                          gdouble       width,
-                                          gdouble       height);
+                                          double        width,
+                                          double        height);
 GDK_AVAILABLE_IN_ALL
 GtkPaperSize *gtk_paper_size_new_from_ipp (const char   *ipp_name,
-                                          gdouble       width,
-                                          gdouble       height);
+                                          double        width,
+                                          double        height);
 GDK_AVAILABLE_IN_ALL
 GtkPaperSize *gtk_paper_size_new_custom   (const char   *name,
                                           const char   *display_name,
-                                          gdouble       width,
-                                          gdouble       height,
+                                          double        width,
+                                          double        height,
                                           GtkUnit       unit);
 GDK_AVAILABLE_IN_ALL
 GtkPaperSize *gtk_paper_size_copy         (GtkPaperSize *other);
@@ -124,9 +124,9 @@ GDK_AVAILABLE_IN_ALL
 const char *gtk_paper_size_get_ppd_name     (GtkPaperSize *size);
 
 GDK_AVAILABLE_IN_ALL
-gdouble  gtk_paper_size_get_width        (GtkPaperSize *size, GtkUnit unit);
+double   gtk_paper_size_get_width        (GtkPaperSize *size, GtkUnit unit);
 GDK_AVAILABLE_IN_ALL
-gdouble  gtk_paper_size_get_height       (GtkPaperSize *size, GtkUnit unit);
+double   gtk_paper_size_get_height       (GtkPaperSize *size, GtkUnit unit);
 GDK_AVAILABLE_IN_ALL
 gboolean gtk_paper_size_is_custom        (GtkPaperSize *size);
 GDK_AVAILABLE_IN_ALL
@@ -135,21 +135,21 @@ gboolean gtk_paper_size_is_ipp           (GtkPaperSize *size);
 /* Only for custom sizes: */
 GDK_AVAILABLE_IN_ALL
 void    gtk_paper_size_set_size                  (GtkPaperSize *size, 
-                                                  gdouble       width, 
-                                                  gdouble       height, 
+                                                  double        width, 
+                                                  double        height, 
                                                   GtkUnit       unit);
 
 GDK_AVAILABLE_IN_ALL
-gdouble gtk_paper_size_get_default_top_margin    (GtkPaperSize *size,
+double gtk_paper_size_get_default_top_margin     (GtkPaperSize *size,
                                                  GtkUnit       unit);
 GDK_AVAILABLE_IN_ALL
-gdouble gtk_paper_size_get_default_bottom_margin (GtkPaperSize *size,
+double gtk_paper_size_get_default_bottom_margin  (GtkPaperSize *size,
                                                  GtkUnit       unit);
 GDK_AVAILABLE_IN_ALL
-gdouble gtk_paper_size_get_default_left_margin   (GtkPaperSize *size,
+double gtk_paper_size_get_default_left_margin    (GtkPaperSize *size,
                                                  GtkUnit       unit);
 GDK_AVAILABLE_IN_ALL
-gdouble gtk_paper_size_get_default_right_margin  (GtkPaperSize *size,
+double gtk_paper_size_get_default_right_margin   (GtkPaperSize *size,
                                                  GtkUnit       unit);
 
 GDK_AVAILABLE_IN_ALL
index c24b931e02c607ee7914cdcf84f311b487d806d8..e3e0b284b4b7c18f44acada3d3856ae12e1ee56d 100644 (file)
@@ -153,8 +153,8 @@ static void gtk_path_bar_update_button_appearance (GtkPathBar       *path_bar,
                                                   gboolean          current_dir);
 
 static gboolean gtk_path_bar_scroll_controller_scroll (GtkEventControllerScroll *scroll,
-                                                       gdouble                   dx,
-                                                       gdouble                   dy,
+                                                       double                    dx,
+                                                       double                    dy,
                                                        GtkPathBar               *path_bar);
 
 static void
@@ -671,8 +671,8 @@ gtk_path_bar_size_allocate (GtkWidget *widget,
 
 static gboolean
 gtk_path_bar_scroll_controller_scroll (GtkEventControllerScroll *scroll,
-                                       gdouble                   dx,
-                                       gdouble                   dy,
+                                       double                    dx,
+                                       double                    dy,
                                        GtkPathBar               *path_bar)
 {
   if (dy > 0)
index a0f3a9c07071fa1e3b3b736d0572786617a290ad..f66bb0a265d91070c4323b30da7a3adedaf024e3 100644 (file)
@@ -271,23 +271,23 @@ static void  check_unmount_and_eject       (GMount   *mount,
                                             gboolean *show_eject);
 static void on_row_pressed  (GtkGestureClick *gesture,
                              int                   n_press,
-                             gdouble               x,
-                             gdouble               y,
+                             double                x,
+                             double                y,
                              GtkSidebarRow        *row);
 static void on_row_released (GtkGestureClick *gesture,
                              int                   n_press,
-                             gdouble               x,
-                             gdouble               y,
+                             double                x,
+                             double                y,
                              GtkSidebarRow        *row);
 static void on_row_dragged  (GtkGestureDrag *gesture,
-                             gdouble         x,
-                             gdouble         y,
+                             double          x,
+                             double          y,
                              GtkSidebarRow  *row);
 
 static void popup_menu_cb    (GtkSidebarRow   *row);
 static void long_press_cb    (GtkGesture      *gesture,
-                              gdouble          x,
-                              gdouble          y,
+                              double           x,
+                              double           y,
                               GtkPlacesSidebar *sidebar);
 static void stop_drop_feedback (GtkPlacesSidebar *sidebar);
 static GMountOperation * get_mount_operation (GtkPlacesSidebar *sidebar);
@@ -3383,8 +3383,8 @@ on_row_activated (GtkListBox    *list_box,
 static void
 on_row_pressed (GtkGestureClick *gesture,
                 int              n_press,
-                gdouble          x,
-                gdouble          y,
+                double           x,
+                double           y,
                 GtkSidebarRow   *row)
 {
   GtkPlacesSidebar *sidebar;
@@ -3410,8 +3410,8 @@ on_row_pressed (GtkGestureClick *gesture,
 static void
 on_row_released (GtkGestureClick *gesture,
                  int              n_press,
-                 gdouble          x,
-                 gdouble          y,
+                 double           x,
+                 double           y,
                  GtkSidebarRow   *row)
 {
   GtkPlacesSidebar *sidebar;
@@ -3452,8 +3452,8 @@ on_row_released (GtkGestureClick *gesture,
 
 static void
 on_row_dragged (GtkGestureDrag *gesture,
-                gdouble         x,
-                gdouble         y,
+                double          x,
+                double          y,
                 GtkSidebarRow  *row)
 {
   GtkPlacesSidebar *sidebar;
@@ -3532,8 +3532,8 @@ popup_menu_cb (GtkSidebarRow *row)
 
 static void
 long_press_cb (GtkGesture       *gesture,
-               gdouble           x,
-               gdouble           y,
+               double            x,
+               double            y,
                GtkPlacesSidebar *sidebar)
 {
   GtkWidget *row;
index c24243d7186a39d9ddc71835d01c2297eeb7faa4..3ad4418bddc871db6a2242b6f620633159b6b793 100644 (file)
@@ -35,8 +35,8 @@ gtk_pointer_focus_new (GtkWindow        *toplevel,
                        GtkWidget        *widget,
                        GdkDevice        *device,
                        GdkEventSequence *sequence,
-                       gdouble           x,
-                       gdouble           y)
+                       double            x,
+                       double            y)
 {
   GtkPointerFocus *focus;
 
@@ -108,8 +108,8 @@ gtk_pointer_focus_get_implicit_grab (GtkPointerFocus *focus)
 
 void
 gtk_pointer_focus_set_coordinates (GtkPointerFocus *focus,
-                                   gdouble          x,
-                                   gdouble          y)
+                                   double           x,
+                                   double           y)
 {
   focus->x = x;
   focus->y = y;
index afbf55bedd423406562fc7b5b3855bd70a17d66b..7cd192902a16c4b789bf5af25f0f37f502dd0dde 100644 (file)
@@ -30,21 +30,21 @@ struct _GtkPointerFocus
   GtkWindow *toplevel;
   GtkWidget *target; /* Unaffected by the implicit grab */
   GtkWidget *grab_widget;
-  gdouble x, y; /* In toplevel coordinates */
+  double x, y; /* In toplevel coordinates */
 };
 
 GtkPointerFocus * gtk_pointer_focus_new  (GtkWindow        *toplevel,
                                           GtkWidget        *widget,
                                           GdkDevice        *device,
                                           GdkEventSequence *sequence,
-                                          gdouble           x,
-                                          gdouble           y);
+                                          double            x,
+                                          double            y);
 GtkPointerFocus * gtk_pointer_focus_ref   (GtkPointerFocus *focus);
 void              gtk_pointer_focus_unref (GtkPointerFocus *focus);
 
 void              gtk_pointer_focus_set_coordinates (GtkPointerFocus *focus,
-                                                     gdouble          x,
-                                                     gdouble          y);
+                                                     double           x,
+                                                     double           y);
 void              gtk_pointer_focus_set_target      (GtkPointerFocus *focus,
                                                      GtkWidget       *target);
 GtkWidget *       gtk_pointer_focus_get_target      (GtkPointerFocus *focus);
index 0dd6d5ddc7df36c54ab1f6b7a0608d3b44debdde..5cab6e69984cabd2d6205f9a15942031eb1fd46c 100644 (file)
@@ -183,16 +183,16 @@ static void                 fallback_printer_request_details       (GtkPrinter
 static gboolean             fallback_printer_mark_conflicts        (GtkPrinter          *printer,
                                                                    GtkPrinterOptionSet *options);
 static gboolean             fallback_printer_get_hard_margins      (GtkPrinter          *printer,
-                                                                    gdouble             *top,
-                                                                    gdouble             *bottom,
-                                                                    gdouble             *left,
-                                                                    gdouble             *right);
+                                                                    double              *top,
+                                                                    double              *bottom,
+                                                                    double              *left,
+                                                                    double              *right);
 static gboolean             fallback_printer_get_hard_margins_for_paper_size (GtkPrinter          *printer,
                                                                              GtkPaperSize        *paper_size,
-                                                                             gdouble             *top,
-                                                                             gdouble             *bottom,
-                                                                             gdouble             *left,
-                                                                             gdouble             *right);
+                                                                             double              *top,
+                                                                             double              *bottom,
+                                                                             double              *left,
+                                                                             double              *right);
 static GList *              fallback_printer_list_papers           (GtkPrinter          *printer);
 static GtkPageSetup *       fallback_printer_get_default_page_size (GtkPrinter          *printer);
 static GtkPrintCapabilities fallback_printer_get_capabilities      (GtkPrinter          *printer);
@@ -380,10 +380,10 @@ fallback_printer_mark_conflicts (GtkPrinter          *printer,
 
 static gboolean
 fallback_printer_get_hard_margins (GtkPrinter *printer,
-                                  gdouble    *top,
-                                  gdouble    *bottom,
-                                  gdouble    *left,
-                                  gdouble    *right)
+                                  double     *top,
+                                  double     *bottom,
+                                  double     *left,
+                                  double     *right)
 {
   return FALSE;
 }
@@ -391,10 +391,10 @@ fallback_printer_get_hard_margins (GtkPrinter *printer,
 static gboolean
 fallback_printer_get_hard_margins_for_paper_size (GtkPrinter   *printer,
                                                  GtkPaperSize *paper_size,
-                                                 gdouble      *top,
-                                                 gdouble      *bottom,
-                                                 gdouble      *left,
-                                                 gdouble      *right)
+                                                 double       *top,
+                                                 double       *bottom,
+                                                 double       *left,
+                                                 double       *right)
 {
   return FALSE;
 }
index 60bf250949b75c91aba128bc73338a7d5811cf5d..c31a693482728d58633f3d07b0861874edbd2365 100644 (file)
@@ -85,8 +85,8 @@ struct _GtkPrintBackendClass
   void                  (*printer_request_details)           (GtkPrinter          *printer);
   cairo_surface_t *     (*printer_create_cairo_surface)      (GtkPrinter          *printer,
                                                              GtkPrintSettings    *settings,
-                                                             gdouble              height,
-                                                             gdouble              width,
+                                                             double               height,
+                                                             double               width,
                                                              GIOChannel          *cache_io);
   GtkPrinterOptionSet * (*printer_get_options)               (GtkPrinter          *printer,
                                                              GtkPrintSettings    *settings,
@@ -104,10 +104,10 @@ struct _GtkPrintBackendClass
   GList  *              (*printer_list_papers)               (GtkPrinter          *printer);
   GtkPageSetup *        (*printer_get_default_page_size)     (GtkPrinter          *printer);
   gboolean              (*printer_get_hard_margins)          (GtkPrinter          *printer,
-                                                             gdouble             *top,
-                                                             gdouble             *bottom,
-                                                             gdouble             *left,
-                                                             gdouble             *right);
+                                                             double              *top,
+                                                             double              *bottom,
+                                                             double              *left,
+                                                             double              *right);
   GtkPrintCapabilities  (*printer_get_capabilities)          (GtkPrinter          *printer);
 
   /* Signals */
@@ -135,10 +135,10 @@ struct _GtkPrintBackendClass
 
   gboolean              (*printer_get_hard_margins_for_paper_size) (GtkPrinter    *printer,
                                                                    GtkPaperSize  *paper_size,
-                                                                   gdouble       *top,
-                                                                   gdouble       *bottom,
-                                                                   gdouble       *left,
-                                                                   gdouble       *right);
+                                                                   double        *top,
+                                                                   double        *bottom,
+                                                                   double        *left,
+                                                                   double        *right);
 };
 
 #define GTK_PRINT_BACKEND_EXTENSION_POINT_NAME "gtk-print-backend"
index f01b9648bc19a26e4cdc9042cc871490c5612568..d3c730d70773046196c759093dad15e3fff9fd76 100644 (file)
@@ -112,17 +112,17 @@ struct _GtkPrintContext
   cairo_t *cr;
   GtkPageSetup *page_setup;
 
-  gdouble surface_dpi_x;
-  gdouble surface_dpi_y;
+  double surface_dpi_x;
+  double surface_dpi_y;
   
-  gdouble pixels_per_unit_x;
-  gdouble pixels_per_unit_y;
+  double pixels_per_unit_x;
+  double pixels_per_unit_y;
 
   gboolean has_hard_margins;
-  gdouble hard_margin_top;
-  gdouble hard_margin_bottom;
-  gdouble hard_margin_left;
-  gdouble hard_margin_right;
+  double hard_margin_top;
+  double hard_margin_bottom;
+  double hard_margin_left;
+  double hard_margin_right;
 
 };
 
@@ -241,7 +241,7 @@ _gtk_print_context_rotate_according_to_orientation (GtkPrintContext *context)
   cairo_t *cr = context->cr;
   cairo_matrix_t matrix;
   GtkPaperSize *paper_size;
-  gdouble width, height;
+  double width, height;
 
   paper_size = gtk_page_setup_get_paper_size (context->page_setup);
 
@@ -287,7 +287,7 @@ _gtk_print_context_reverse_according_to_orientation (GtkPrintContext *context)
 {
   cairo_t *cr = context->cr;
   cairo_matrix_t matrix;
-  gdouble width, height;
+  double width, height;
 
   width = gtk_page_setup_get_paper_width (context->page_setup, GTK_UNIT_INCH);
   width = width * context->surface_dpi_x / context->pixels_per_unit_x;
@@ -315,7 +315,7 @@ _gtk_print_context_reverse_according_to_orientation (GtkPrintContext *context)
 void
 _gtk_print_context_translate_into_margin (GtkPrintContext *context)
 {
-  gdouble dx, dy;
+  double dx, dy;
 
   g_return_if_fail (GTK_IS_PRINT_CONTEXT (context));
 
@@ -405,11 +405,11 @@ gtk_print_context_get_page_setup (GtkPrintContext *context)
  *
  * Returns: the width of @context
  */
-gdouble
+double
 gtk_print_context_get_width (GtkPrintContext *context)
 {
   GtkPrintOperationPrivate *priv;
-  gdouble width;
+  double width;
 
   g_return_val_if_fail (GTK_IS_PRINT_CONTEXT (context), 0);
 
@@ -432,11 +432,11 @@ gtk_print_context_get_width (GtkPrintContext *context)
  *
  * Returns: the height of @context
  */
-gdouble
+double
 gtk_print_context_get_height (GtkPrintContext *context)
 {
   GtkPrintOperationPrivate *priv;
-  gdouble height;
+  double height;
 
   g_return_val_if_fail (GTK_IS_PRINT_CONTEXT (context), 0);
 
@@ -460,7 +460,7 @@ gtk_print_context_get_height (GtkPrintContext *context)
  *
  * Returns: the horizontal resolution of @context
  */
-gdouble
+double
 gtk_print_context_get_dpi_x (GtkPrintContext *context)
 {
   g_return_val_if_fail (GTK_IS_PRINT_CONTEXT (context), 0);
@@ -477,7 +477,7 @@ gtk_print_context_get_dpi_x (GtkPrintContext *context)
  *
  * Returns: the vertical resolution of @context
  */
-gdouble
+double
 gtk_print_context_get_dpi_y (GtkPrintContext *context)
 {
   g_return_val_if_fail (GTK_IS_PRINT_CONTEXT (context), 0);
@@ -499,10 +499,10 @@ gtk_print_context_get_dpi_y (GtkPrintContext *context)
  */
 gboolean
 gtk_print_context_get_hard_margins (GtkPrintContext *context,
-                                   gdouble         *top,
-                                   gdouble         *bottom,
-                                   gdouble         *left,
-                                   gdouble         *right)
+                                   double          *top,
+                                   double          *bottom,
+                                   double          *left,
+                                   double          *right)
 {
   if (context->has_hard_margins)
     {
@@ -527,10 +527,10 @@ gtk_print_context_get_hard_margins (GtkPrintContext *context,
  */
 void
 _gtk_print_context_set_hard_margins (GtkPrintContext *context,
-                                    gdouble          top,
-                                    gdouble          bottom,
-                                    gdouble          left,
-                                    gdouble          right)
+                                    double           top,
+                                    double           bottom,
+                                    double           left,
+                                    double           right)
 {
   context->hard_margin_top    = top;
   context->hard_margin_bottom = bottom;
index c78be90c907cdf4de079528b3d81445ecf2a5313..3c4ede2bbfc95ef950c0a123df5ae819cfaab311 100644 (file)
@@ -47,19 +47,19 @@ cairo_t      *gtk_print_context_get_cairo_context    (GtkPrintContext *context);
 GDK_AVAILABLE_IN_ALL
 GtkPageSetup *gtk_print_context_get_page_setup       (GtkPrintContext *context);
 GDK_AVAILABLE_IN_ALL
-gdouble       gtk_print_context_get_width            (GtkPrintContext *context);
+double        gtk_print_context_get_width            (GtkPrintContext *context);
 GDK_AVAILABLE_IN_ALL
-gdouble       gtk_print_context_get_height           (GtkPrintContext *context);
+double        gtk_print_context_get_height           (GtkPrintContext *context);
 GDK_AVAILABLE_IN_ALL
-gdouble       gtk_print_context_get_dpi_x            (GtkPrintContext *context);
+double        gtk_print_context_get_dpi_x            (GtkPrintContext *context);
 GDK_AVAILABLE_IN_ALL
-gdouble       gtk_print_context_get_dpi_y            (GtkPrintContext *context);
+double        gtk_print_context_get_dpi_y            (GtkPrintContext *context);
 GDK_AVAILABLE_IN_ALL
 gboolean      gtk_print_context_get_hard_margins     (GtkPrintContext *context,
-                                                     gdouble         *top,
-                                                     gdouble         *bottom,
-                                                     gdouble         *left,
-                                                     gdouble         *right);
+                                                     double          *top,
+                                                     double          *bottom,
+                                                     double          *left,
+                                                     double          *right);
 
 /* Fonts */
 GDK_AVAILABLE_IN_ALL
index f10b3f7043e4e24f377da792979fa569753b81c4..76f2a83818588bdc905cb7f652a38ee4bed816dd 100644 (file)
@@ -928,8 +928,8 @@ _gtk_printer_prepare_for_print (GtkPrinter       *printer,
 cairo_surface_t *
 _gtk_printer_create_cairo_surface (GtkPrinter       *printer,
                                   GtkPrintSettings *settings,
-                                  gdouble           width, 
-                                  gdouble           height,
+                                  double            width, 
+                                  double            height,
                                   GIOChannel       *cache_io)
 {
   GtkPrinterPrivate *priv = gtk_printer_get_instance_private (printer);
@@ -999,10 +999,10 @@ gtk_printer_get_default_page_size (GtkPrinter *printer)
  */
 gboolean
 gtk_printer_get_hard_margins (GtkPrinter *printer,
-                             gdouble    *top,
-                             gdouble    *bottom,
-                             gdouble    *left,
-                             gdouble    *right)
+                             double     *top,
+                             double     *bottom,
+                             double     *left,
+                             double     *right)
 {
   GtkPrinterPrivate *priv = gtk_printer_get_instance_private (printer);
   GtkPrintBackendClass *backend_class = GTK_PRINT_BACKEND_GET_CLASS (priv->backend);
@@ -1031,10 +1031,10 @@ gtk_printer_get_hard_margins (GtkPrinter *printer,
 gboolean
 gtk_printer_get_hard_margins_for_paper_size (GtkPrinter   *printer,
                                             GtkPaperSize *paper_size,
-                                            gdouble      *top,
-                                            gdouble      *bottom,
-                                            gdouble      *left,
-                                            gdouble      *right)
+                                            double       *top,
+                                            double       *bottom,
+                                            double       *left,
+                                            double       *right)
 {
   GtkPrinterPrivate *priv = gtk_printer_get_instance_private (printer);
   GtkPrintBackendClass *backend_class = GTK_PRINT_BACKEND_GET_CLASS (priv->backend);
index 71a55bab46402e065fb1c6255bc473636d14bfd2..0a259d9b164bd641104a96f590ff5f66945b65b3 100644 (file)
@@ -127,17 +127,17 @@ GDK_AVAILABLE_IN_ALL
 GtkPrintCapabilities     gtk_printer_get_capabilities      (GtkPrinter       *printer);
 GDK_AVAILABLE_IN_ALL
 gboolean                 gtk_printer_get_hard_margins      (GtkPrinter       *printer,
-                                                            gdouble          *top,
-                                                            gdouble          *bottom,
-                                                            gdouble          *left,
-                                                            gdouble          *right);
+                                                            double           *top,
+                                                            double           *bottom,
+                                                            double           *left,
+                                                            double           *right);
 GDK_AVAILABLE_IN_ALL
 gboolean                 gtk_printer_get_hard_margins_for_paper_size (GtkPrinter       *printer,
                                                                      GtkPaperSize     *paper_size,
-                                                                     gdouble          *top,
-                                                                     gdouble          *bottom,
-                                                                     gdouble          *left,
-                                                                     gdouble          *right);
+                                                                     double           *top,
+                                                                     double           *bottom,
+                                                                     double           *left,
+                                                                     double           *right);
 
 /**
  * GtkPrinterFunc:
index ed4ecc526d7a85634ac9fd705e59e7e748048157..a3a11b4acc9bbba28e3f3035752cf78f9f3f9d55 100644 (file)
@@ -60,8 +60,8 @@ void                 _gtk_printer_prepare_for_print         (GtkPrinter
                                                             GtkPageSetup        *page_setup);
 cairo_surface_t *    _gtk_printer_create_cairo_surface      (GtkPrinter          *printer,
                                                             GtkPrintSettings    *settings,
-                                                            gdouble              width,
-                                                            gdouble              height,
+                                                            double               width,
+                                                            double               height,
                                                             GIOChannel          *cache_io);
 GHashTable *         _gtk_printer_get_custom_widgets        (GtkPrinter          *printer);
 
index 50f3d68db847a1c6edf07c40548c465882c2e807..554036bbcc8575bb0d5bfaa48bc3f072520adade 100644 (file)
@@ -78,7 +78,7 @@ struct _GtkPrintJob
   int num_page_ranges;
   GtkPageSet page_set;
   int num_copies;
-  gdouble scale;
+  double scale;
   guint number_up;
   GtkNumberUpLayout number_up_layout;
 
@@ -476,7 +476,7 @@ gtk_print_job_get_surface (GtkPrintJob  *job,
                           GError      **error)
 {
   char *filename = NULL;
-  gdouble width, height;
+  double width, height;
   GtkPaperSize *paper_size;
   int fd;
   GError *tmp_error;
@@ -813,7 +813,7 @@ gtk_print_job_set_num_copies (GtkPrintJob *job,
  *
  * Returns: the scale
  */
-gdouble
+double
 gtk_print_job_get_scale (GtkPrintJob *job)
 
 {
@@ -829,7 +829,7 @@ gtk_print_job_get_scale (GtkPrintJob *job)
  */
 void
 gtk_print_job_set_scale (GtkPrintJob *job,
-                         gdouble      scale)
+                         double       scale)
 {
   job->scale = scale;
 }
index cc300aa10e12108ff07a7595b6ec798c42f02956..54617ee6dc1d6bffbbd0cd79d4b922211573dae6 100644 (file)
@@ -110,10 +110,10 @@ GDK_AVAILABLE_IN_ALL
 void              gtk_print_job_set_num_copies  (GtkPrintJob       *job,
                                                  int                num_copies);
 GDK_AVAILABLE_IN_ALL
-gdouble           gtk_print_job_get_scale       (GtkPrintJob       *job);
+double            gtk_print_job_get_scale       (GtkPrintJob       *job);
 GDK_AVAILABLE_IN_ALL
 void              gtk_print_job_set_scale       (GtkPrintJob       *job,
-                                                 gdouble            scale);
+                                                 double             scale);
 GDK_AVAILABLE_IN_ALL
 guint             gtk_print_job_get_n_up        (GtkPrintJob       *job);
 GDK_AVAILABLE_IN_ALL
index 15bf35c7bc78806a066ad013740a09a7b27d31aa..2ec934dcc35c9f75c72e5e97189becac0c57e68f 100644 (file)
@@ -105,7 +105,7 @@ portal_start_page (GtkPrintOperation *op,
   GtkPrintOperationPortal *op_portal = op->priv->platform_data;
   GtkPaperSize *paper_size;
   cairo_surface_type_t type;
-  gdouble w, h;
+  double w, h;
 
   paper_size = gtk_page_setup_get_paper_size (page_setup);
 
index 5f178fc4dc8ce24f22ac0e171a686aec1e4c86c4..0ac7d19e181b0679b5cac9efb674c261e577a0e2 100644 (file)
@@ -114,8 +114,8 @@ void                    _gtk_print_operation_platform_backend_launch_preview
                                                                                      const char                  *filename);
 cairo_surface_t *       _gtk_print_operation_platform_backend_create_preview_surface (GtkPrintOperation           *op,
                                                                                      GtkPageSetup                *page_setup,
-                                                                                     gdouble                     *dpi_x,
-                                                                                     gdouble                     *dpi_y,
+                                                                                     double                      *dpi_x,
+                                                                                     double                      *dpi_y,
                                                                                      char                        **target);
 void                    _gtk_print_operation_platform_backend_resize_preview_surface (GtkPrintOperation           *op,
                                                                                      GtkPageSetup                *page_setup,
@@ -140,10 +140,10 @@ void             _gtk_print_context_translate_into_margin           (GtkPrintCon
 void             _gtk_print_context_rotate_according_to_orientation (GtkPrintContext   *context);
 void             _gtk_print_context_reverse_according_to_orientation (GtkPrintContext *context);
 void             _gtk_print_context_set_hard_margins                (GtkPrintContext   *context,
-                                                                    gdouble            top,
-                                                                    gdouble            bottom,
-                                                                    gdouble            left,
-                                                                    gdouble            right);
+                                                                    double             top,
+                                                                    double             bottom,
+                                                                    double             left,
+                                                                    double             right);
 
 G_END_DECLS
 
index 61391de98a1a27077f848c3e5c4d0462223bdbb7..6760aafcf9791532ca50ed3a209f87cee365af47 100644 (file)
@@ -74,7 +74,7 @@ unix_start_page (GtkPrintOperation *op,
   GtkPrintOperationUnix *op_unix;  
   GtkPaperSize *paper_size;
   cairo_surface_type_t type;
-  gdouble w, h;
+  double w, h;
 
   op_unix = op->priv->platform_data;
   
@@ -522,7 +522,7 @@ finish_print (PrintResponseData *rdata,
   GtkPrintOperation *op = rdata->op;
   GtkPrintOperationPrivate *priv = op->priv;
   GtkPrintJob *job;
-  gdouble top, bottom, left, right;
+  double top, bottom, left, right;
   
   if (rdata->do_print)
     {
@@ -782,14 +782,14 @@ close_preview (void *data)
 static cairo_surface_t *
 gtk_print_operation_unix_create_preview_surface (GtkPrintOperation *op,
                                                  GtkPageSetup      *page_setup,
-                                                 gdouble           *dpi_x,
-                                                 gdouble           *dpi_y,
+                                                 double            *dpi_x,
+                                                 double            *dpi_y,
                                                  char             **target)
 {
   char *filename;
   int fd;
   GtkPaperSize *paper_size;
-  gdouble w, h;
+  double w, h;
   cairo_surface_t *surface;
   static cairo_user_data_key_t key;
   
@@ -836,7 +836,7 @@ gtk_print_operation_unix_resize_preview_surface (GtkPrintOperation *op,
                                                  GtkPageSetup      *page_setup,
                                                  cairo_surface_t   *surface)
 {
-  gdouble w, h;
+  double w, h;
   
   w = gtk_page_setup_get_paper_width (page_setup, GTK_UNIT_POINTS);
   h = gtk_page_setup_get_paper_height (page_setup, GTK_UNIT_POINTS);
@@ -1271,8 +1271,8 @@ _gtk_print_operation_platform_backend_launch_preview (GtkPrintOperation *op,
 cairo_surface_t *
 _gtk_print_operation_platform_backend_create_preview_surface (GtkPrintOperation *op,
                                                              GtkPageSetup      *page_setup,
-                                                             gdouble           *dpi_x,
-                                                             gdouble           *dpi_y,
+                                                             double            *dpi_x,
+                                                             double            *dpi_y,
                                                              char             **target)
 {
   return gtk_print_operation_unix_create_preview_surface (op, page_setup, dpi_x, dpi_y, target);
index 55c0a554fd7be1c5474d29388d2d10ccd5a6ad63..00f1a6c381b25dd0d5fc918c3dc153a4caf47444 100644 (file)
@@ -2010,8 +2010,8 @@ _gtk_print_operation_platform_backend_preview_end_page (GtkPrintOperation *op,
 cairo_surface_t *
 _gtk_print_operation_platform_backend_create_preview_surface (GtkPrintOperation *op,
                                                              GtkPageSetup      *page_setup,
-                                                             gdouble           *dpi_x,
-                                                             gdouble           *dpi_y,
+                                                             double            *dpi_x,
+                                                             double            *dpi_y,
                                                              char             **target)
 {
   GtkPaperSize *paper_size;
index 5a43683afb33691c8bb8240fd547fa91cc5480fd..56547c2403675b09db08d0c83b0576e15e199a7f 100644 (file)
@@ -643,7 +643,7 @@ gtk_print_operation_preview_handler (GtkPrintOperation        *op,
                                     GtkPrintContext          *context,
                                     GtkWindow                *parent)
 {
-  gdouble dpi_x, dpi_y;
+  double dpi_x, dpi_y;
   PreviewOp *pop;
   GtkPageSetup *page_setup;
   cairo_t *cr;
@@ -870,7 +870,7 @@ gtk_print_operation_class_init (GtkPrintOperationClass *class)
    * {
    *   cairo_t *cr;
    *   PangoLayout *layout;
-   *   gdouble width, text_height;
+   *   double width, text_height;
    *   int layout_height;
    *   PangoFontDescription *desc;
    *   
@@ -893,7 +893,7 @@ gtk_print_operation_class_init (GtkPrintOperationClass *class)
    *   pango_layout_set_alignment (layout, PANGO_ALIGN_CENTER);
    *                         
    *   pango_layout_get_size (layout, NULL, &layout_height);
-   *   text_height = (gdouble)layout_height / PANGO_SCALE;
+   *   text_height = (double)layout_height / PANGO_SCALE;
    *   
    *   cairo_move_to (cr, width / 2,  (HEADER_HEIGHT - text_height) / 2);
    *   pango_cairo_show_layout (cr, layout);
@@ -1948,7 +1948,7 @@ pdf_start_page (GtkPrintOperation *op,
                GtkPageSetup      *page_setup)
 {
   cairo_surface_t *surface = op->priv->platform_data;
-  gdouble w, h;
+  double w, h;
 
   w = gtk_page_setup_get_paper_width (page_setup, GTK_UNIT_POINTS);
   h = gtk_page_setup_get_paper_height (page_setup, GTK_UNIT_POINTS);
@@ -1994,7 +1994,7 @@ run_pdf (GtkPrintOperation  *op,
   GtkPageSetup *page_setup;
   cairo_surface_t *surface;
   cairo_t *cr;
-  gdouble width, height;
+  double width, height;
   
   priv->print_context = _gtk_print_context_new (op);
   
@@ -2390,13 +2390,13 @@ common_render_page (GtkPrintOperation *op,
   else
     {
       GtkPageOrientation  orientation;
-      gdouble             paper_width, paper_height;
-      gdouble             page_width, page_height;
-      gdouble             context_width, context_height;
-      gdouble             bottom_margin, top_margin, left_margin, right_margin;
-      gdouble             x_step, y_step;
-      gdouble             x_scale, y_scale, scale;
-      gdouble             horizontal_offset = 0.0, vertical_offset = 0.0;
+      double              paper_width, paper_height;
+      double              page_width, page_height;
+      double              context_width, context_height;
+      double              bottom_margin, top_margin, left_margin, right_margin;
+      double              x_step, y_step;
+      double              x_scale, y_scale, scale;
+      double              horizontal_offset = 0.0, vertical_offset = 0.0;
       int                 columns, rows, x, y, tmp_length;
 
       page_setup = gtk_print_context_get_page_setup (print_context);
index 261e2c74e2b3d691c47ae027734531b9c68ba7eb..0df67a23e6c02e468ee27b6b503be64636a14160 100644 (file)
@@ -309,10 +309,10 @@ gtk_print_settings_set_bool (GtkPrintSettings *settings,
  *
  * Returns: the floating point number associated with @key
  */
-gdouble
+double
 gtk_print_settings_get_double_with_default (GtkPrintSettings *settings,
                                            const char       *key,
-                                           gdouble           def)
+                                           double            def)
 {
   const char *val;
 
@@ -332,7 +332,7 @@ gtk_print_settings_get_double_with_default (GtkPrintSettings *settings,
  * 
  * Returns: the double value of @key
  */
-gdouble
+double
 gtk_print_settings_get_double (GtkPrintSettings *settings,
                               const char       *key)
 {
@@ -350,7 +350,7 @@ gtk_print_settings_get_double (GtkPrintSettings *settings,
 void
 gtk_print_settings_set_double (GtkPrintSettings *settings,
                               const char       *key,
-                              gdouble           value)
+                              double            value)
 {
   char buf[G_ASCII_DTOSTR_BUF_SIZE];
   
@@ -369,12 +369,12 @@ gtk_print_settings_set_double (GtkPrintSettings *settings,
  * 
  * Returns: the length value of @key, converted to @unit
  */
-gdouble
+double
 gtk_print_settings_get_length (GtkPrintSettings *settings,
                               const char       *key,
                               GtkUnit           unit)
 {
-  gdouble length = gtk_print_settings_get_double (settings, key);
+  double length = gtk_print_settings_get_double (settings, key);
   return _gtk_print_convert_from_mm (length, unit);
 }
 
@@ -390,7 +390,7 @@ gtk_print_settings_get_length (GtkPrintSettings *settings,
 void
 gtk_print_settings_set_length (GtkPrintSettings *settings,
                               const char       *key,
-                              gdouble           value, 
+                              double            value, 
                               GtkUnit           unit)
 {
   gtk_print_settings_set_double (settings, key,
@@ -580,7 +580,7 @@ gtk_print_settings_get_paper_size (GtkPrintSettings *settings)
 {
   const char *val;
   const char *name;
-  gdouble w, h;
+  double w, h;
 
   val = gtk_print_settings_get (settings, GTK_PRINT_SETTINGS_PAPER_FORMAT);
   if (val == NULL)
@@ -648,7 +648,7 @@ gtk_print_settings_set_paper_size (GtkPrintSettings *settings,
  * 
  * Returns: the paper width, in units of @unit
  */
-gdouble
+double
 gtk_print_settings_get_paper_width (GtkPrintSettings *settings,
                                    GtkUnit           unit)
 {
@@ -665,7 +665,7 @@ gtk_print_settings_get_paper_width (GtkPrintSettings *settings,
  */
 void
 gtk_print_settings_set_paper_width (GtkPrintSettings *settings,
-                                   gdouble           width, 
+                                   double            width, 
                                    GtkUnit           unit)
 {
   gtk_print_settings_set_length (settings, GTK_PRINT_SETTINGS_PAPER_WIDTH, width, unit);
@@ -681,7 +681,7 @@ gtk_print_settings_set_paper_width (GtkPrintSettings *settings,
  * 
  * Returns: the paper height, in units of @unit
  */
-gdouble
+double
 gtk_print_settings_get_paper_height (GtkPrintSettings *settings,
                                     GtkUnit           unit)
 {
@@ -700,7 +700,7 @@ gtk_print_settings_get_paper_height (GtkPrintSettings *settings,
  */
 void
 gtk_print_settings_set_paper_height (GtkPrintSettings *settings,
-                                    gdouble           height, 
+                                    double            height, 
                                     GtkUnit           unit)
 {
   gtk_print_settings_set_length (settings, 
@@ -1195,7 +1195,7 @@ gtk_print_settings_set_resolution_xy (GtkPrintSettings *settings,
  * 
  * Returns: the resolution in lpi (lines per inch)
  */
-gdouble
+double
 gtk_print_settings_get_printer_lpi (GtkPrintSettings *settings)
 {
   return gtk_print_settings_get_double_with_default (settings, GTK_PRINT_SETTINGS_PRINTER_LPI, 150.0);
@@ -1210,7 +1210,7 @@ gtk_print_settings_get_printer_lpi (GtkPrintSettings *settings)
  */
 void
 gtk_print_settings_set_printer_lpi (GtkPrintSettings *settings,
-                                   gdouble           lpi)
+                                   double            lpi)
 {
   gtk_print_settings_set_double (settings, GTK_PRINT_SETTINGS_PRINTER_LPI,
                                 lpi);
@@ -1224,7 +1224,7 @@ gtk_print_settings_set_printer_lpi (GtkPrintSettings *settings,
  * 
  * Returns: the scale in percent
  */
-gdouble
+double
 gtk_print_settings_get_scale (GtkPrintSettings *settings)
 {
   return gtk_print_settings_get_double_with_default (settings,
@@ -1241,7 +1241,7 @@ gtk_print_settings_get_scale (GtkPrintSettings *settings)
  */
 void
 gtk_print_settings_set_scale (GtkPrintSettings *settings,
-                             gdouble           scale)
+                             double            scale)
 {
   gtk_print_settings_set_double (settings, GTK_PRINT_SETTINGS_SCALE,
                                 scale);
index 2b624c06ef340f99554aac2db89c4d7463b17b64..3c8363d27ebe6023a1273d249741724f98e6c242 100644 (file)
@@ -108,24 +108,24 @@ void              gtk_print_settings_set_bool                (GtkPrintSettings
                                                              const char           *key,
                                                              gboolean              value);
 GDK_AVAILABLE_IN_ALL
-gdouble           gtk_print_settings_get_double              (GtkPrintSettings     *settings,
+double            gtk_print_settings_get_double              (GtkPrintSettings     *settings,
                                                              const char           *key);
 GDK_AVAILABLE_IN_ALL
-gdouble           gtk_print_settings_get_double_with_default (GtkPrintSettings     *settings,
+double            gtk_print_settings_get_double_with_default (GtkPrintSettings     *settings,
                                                              const char           *key,
-                                                             gdouble               def);
+                                                             double                def);
 GDK_AVAILABLE_IN_ALL
 void              gtk_print_settings_set_double              (GtkPrintSettings     *settings,
                                                              const char           *key,
-                                                             gdouble               value);
+                                                             double                value);
 GDK_AVAILABLE_IN_ALL
-gdouble           gtk_print_settings_get_length              (GtkPrintSettings     *settings,
+double            gtk_print_settings_get_length              (GtkPrintSettings     *settings,
                                                              const char           *key,
                                                              GtkUnit               unit);
 GDK_AVAILABLE_IN_ALL
 void              gtk_print_settings_set_length              (GtkPrintSettings     *settings,
                                                              const char           *key,
-                                                             gdouble               value,
+                                                             double                value,
                                                              GtkUnit               unit);
 GDK_AVAILABLE_IN_ALL
 int               gtk_print_settings_get_int                 (GtkPrintSettings     *settings,
@@ -221,18 +221,18 @@ GDK_AVAILABLE_IN_ALL
 void                  gtk_print_settings_set_paper_size        (GtkPrintSettings   *settings,
                                                                GtkPaperSize       *paper_size);
 GDK_AVAILABLE_IN_ALL
-gdouble               gtk_print_settings_get_paper_width       (GtkPrintSettings   *settings,
+double                gtk_print_settings_get_paper_width       (GtkPrintSettings   *settings,
                                                                GtkUnit             unit);
 GDK_AVAILABLE_IN_ALL
 void                  gtk_print_settings_set_paper_width       (GtkPrintSettings   *settings,
-                                                               gdouble             width,
+                                                               double              width,
                                                                GtkUnit             unit);
 GDK_AVAILABLE_IN_ALL
-gdouble               gtk_print_settings_get_paper_height      (GtkPrintSettings   *settings,
+double                gtk_print_settings_get_paper_height      (GtkPrintSettings   *settings,
                                                                GtkUnit             unit);
 GDK_AVAILABLE_IN_ALL
 void                  gtk_print_settings_set_paper_height      (GtkPrintSettings   *settings,
-                                                               gdouble             height,
+                                                               double              height,
                                                                GtkUnit             unit);
 GDK_AVAILABLE_IN_ALL
 gboolean              gtk_print_settings_get_use_color         (GtkPrintSettings   *settings);
@@ -288,15 +288,15 @@ void                  gtk_print_settings_set_resolution_xy     (GtkPrintSettings
                                                                int                 resolution_x,
                                                                int                 resolution_y);
 GDK_AVAILABLE_IN_ALL
-gdouble               gtk_print_settings_get_printer_lpi       (GtkPrintSettings   *settings);
+double                gtk_print_settings_get_printer_lpi       (GtkPrintSettings   *settings);
 GDK_AVAILABLE_IN_ALL
 void                  gtk_print_settings_set_printer_lpi       (GtkPrintSettings   *settings,
-                                                               gdouble             lpi);
+                                                               double              lpi);
 GDK_AVAILABLE_IN_ALL
-gdouble               gtk_print_settings_get_scale             (GtkPrintSettings   *settings);
+double                gtk_print_settings_get_scale             (GtkPrintSettings   *settings);
 GDK_AVAILABLE_IN_ALL
 void                  gtk_print_settings_set_scale             (GtkPrintSettings   *settings,
-                                                               gdouble             scale);
+                                                               double              scale);
 GDK_AVAILABLE_IN_ALL
 GtkPrintPages         gtk_print_settings_get_print_pages       (GtkPrintSettings   *settings);
 GDK_AVAILABLE_IN_ALL
index 2b1c89e346b89ed00a3673cf2fced48fd729087d..26a25a6cfce5e705e05de7375ac73f7c402303c3 100644 (file)
@@ -2192,7 +2192,7 @@ dialog_set_print_pages (GtkPrintUnixDialog *dialog,
     gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (dialog->all_pages_radio), TRUE);
 }
 
-static gdouble
+static double
 dialog_get_scale (GtkPrintUnixDialog *dialog)
 {
   if (gtk_widget_is_sensitive (dialog->scale_spin))
@@ -2203,7 +2203,7 @@ dialog_get_scale (GtkPrintUnixDialog *dialog)
 
 static void
 dialog_set_scale (GtkPrintUnixDialog *dialog,
-                  gdouble             val)
+                  double              val)
 {
   gtk_spin_button_set_value (GTK_SPIN_BUTTON (dialog->scale_spin), val);
 }
@@ -2359,10 +2359,10 @@ draw_page (GtkDrawingArea *da,
   GtkWidget *widget = GTK_WIDGET (da);
   GtkPrintUnixDialog *dialog = GTK_PRINT_UNIX_DIALOG (data);
   GtkStyleContext *context;
-  gdouble ratio;
+  double ratio;
   int w, h, tmp;
   int pages_x, pages_y, i, x, y, layout_w, layout_h;
-  gdouble page_width, page_height;
+  double page_width, page_height;
   GtkPageOrientation orientation;
   gboolean landscape;
   PangoLayout *layout;
@@ -2374,8 +2374,8 @@ draw_page (GtkDrawingArea *da,
   int dx, dy;
   gboolean horizontal;
   GtkPageSetup *page_setup;
-  gdouble paper_width, paper_height;
-  gdouble pos_x, pos_y;
+  double paper_width, paper_height;
+  double pos_x, pos_y;
   int pages_per_sheet;
   gboolean ltr = TRUE;
 
@@ -2479,8 +2479,8 @@ draw_page (GtkDrawingArea *da,
 
   i = 1;
 
-  page_width = (gdouble)w / pages_x;
-  page_height = (gdouble)h / pages_y;
+  page_width = (double)w / pages_x;
+  page_height = (double)h / pages_y;
 
   layout  = pango_cairo_create_layout (cr);
 
index a8b1d835cc5065bb2ad625ac580c24ffb06f748d..a8e2095b2bfb6715e40da3dce4263572d98cd9c8 100644 (file)
@@ -19,8 +19,8 @@
 #include "config.h"
 #include "gtkprintutils.h"
 
-gdouble
-_gtk_print_convert_to_mm (gdouble len, 
+double
+_gtk_print_convert_to_mm (double len, 
                          GtkUnit unit)
 {
   switch (unit)
@@ -39,8 +39,8 @@ _gtk_print_convert_to_mm (gdouble len,
     }
 }
 
-gdouble
-_gtk_print_convert_from_mm (gdouble len, 
+double
+_gtk_print_convert_from_mm (double len, 
                            GtkUnit unit)
 {
   switch (unit)
index 47678b37fd7d78b921d0307d8fd5936dfbff90df..7b4596a56848a74492235ecdb7862f7be86f695d 100644 (file)
@@ -27,8 +27,8 @@ G_BEGIN_DECLS
 #define MM_PER_INCH 25.4
 #define POINTS_PER_INCH 72
 
-gdouble _gtk_print_convert_to_mm   (gdouble len, GtkUnit unit);
-gdouble _gtk_print_convert_from_mm (gdouble len, GtkUnit unit);
+double _gtk_print_convert_to_mm   (double len, GtkUnit unit);
+double _gtk_print_convert_from_mm (double len, GtkUnit unit);
 
 G_END_DECLS
 
index f3c7148b2e757e5b98df2d36e3279b0aeff8c0a2..9a128c3c03e84831ac55e0a8af6a9ae0657ac1c6 100644 (file)
@@ -96,8 +96,8 @@ guint32    gtk_get_current_event_time   (void);
 void check_crossing_invariants (GtkWidget       *widget,
                                 GtkCrossingData *crossing);
 
-gdouble _gtk_get_slowdown (void);
-void    _gtk_set_slowdown (gdouble slowdown_factor);
+double _gtk_get_slowdown (void);
+void    _gtk_set_slowdown (double slowdown_factor);
 
 char *gtk_get_portal_request_path (GDBusConnection  *connection,
                                    char            **token);
index 7f020026edbcc9c773510947b003796c75d8e0e1..3a1fecf23ca9e7c9094e66db679cdf6f92c0198e 100644 (file)
@@ -101,8 +101,8 @@ struct _GtkProgressBar
   GtkWidget     *trough_widget;
   GtkWidget     *progress_widget;
 
-  gdouble        fraction;
-  gdouble        pulse_fraction;
+  double         fraction;
+  double         pulse_fraction;
 
   double         activity_pos;
   guint          activity_blocks;
@@ -113,7 +113,7 @@ struct _GtkProgressBar
   GtkProgressTracker tracker;
   gint64             pulse1;
   gint64             pulse2;
-  gdouble            last_iteration;
+  double             last_iteration;
 
   guint          activity_dir  : 1;
   guint          activity_mode : 1;
@@ -587,7 +587,7 @@ tick_cb (GtkWidget     *widget,
 {
   GtkProgressBar *pbar = GTK_PROGRESS_BAR (widget);
   gint64 frame_time;
-  gdouble iteration, pulse_iterations, current_iterations, fraction;
+  double iteration, pulse_iterations, current_iterations, fraction;
 
   if (pbar->pulse2 == 0 && pbar->pulse1 == 0)
     return G_SOURCE_CONTINUE;
@@ -714,7 +714,7 @@ gtk_progress_bar_set_activity_mode (GtkProgressBar *pbar,
  */
 void
 gtk_progress_bar_set_fraction (GtkProgressBar *pbar,
-                               gdouble         fraction)
+                               double          fraction)
 {
   g_return_if_fail (GTK_IS_PROGRESS_BAR (pbar));
 
@@ -884,7 +884,7 @@ gtk_progress_bar_get_show_text (GtkProgressBar *pbar)
  */
 void
 gtk_progress_bar_set_pulse_step (GtkProgressBar *pbar,
-                                 gdouble         fraction)
+                                 double          fraction)
 {
   g_return_if_fail (GTK_IS_PROGRESS_BAR (pbar));
 
@@ -991,7 +991,7 @@ gtk_progress_bar_get_text (GtkProgressBar *pbar)
  *
  * Returns: a fraction from 0.0 to 1.0
  */
-gdouble
+double
 gtk_progress_bar_get_fraction (GtkProgressBar *pbar)
 {
   g_return_val_if_fail (GTK_IS_PROGRESS_BAR (pbar), 0);
@@ -1007,7 +1007,7 @@ gtk_progress_bar_get_fraction (GtkProgressBar *pbar)
  *
  * Returns: a fraction from 0.0 to 1.0
  */
-gdouble
+double
 gtk_progress_bar_get_pulse_step (GtkProgressBar *pbar)
 {
   g_return_val_if_fail (GTK_IS_PROGRESS_BAR (pbar), 0);
index dcacd26b8a66a8d12c9b8347c7bf831d64182e64..75dc092d070d76770f4160e435d8834c15c53ced 100644 (file)
@@ -53,11 +53,11 @@ void       gtk_progress_bar_set_text             (GtkProgressBar *pbar,
                                                   const char     *text);
 GDK_AVAILABLE_IN_ALL
 void       gtk_progress_bar_set_fraction         (GtkProgressBar *pbar,
-                                                  gdouble         fraction);
+                                                  double          fraction);
 
 GDK_AVAILABLE_IN_ALL
 void       gtk_progress_bar_set_pulse_step       (GtkProgressBar *pbar,
-                                                  gdouble         fraction);
+                                                  double          fraction);
 GDK_AVAILABLE_IN_ALL
 void       gtk_progress_bar_set_inverted         (GtkProgressBar *pbar,
                                                   gboolean        inverted);
@@ -65,9 +65,9 @@ void       gtk_progress_bar_set_inverted         (GtkProgressBar *pbar,
 GDK_AVAILABLE_IN_ALL
 const char *      gtk_progress_bar_get_text       (GtkProgressBar *pbar);
 GDK_AVAILABLE_IN_ALL
-gdouble            gtk_progress_bar_get_fraction   (GtkProgressBar *pbar);
+double             gtk_progress_bar_get_fraction   (GtkProgressBar *pbar);
 GDK_AVAILABLE_IN_ALL
-gdouble            gtk_progress_bar_get_pulse_step (GtkProgressBar *pbar);
+double             gtk_progress_bar_get_pulse_step (GtkProgressBar *pbar);
 
 GDK_AVAILABLE_IN_ALL
 gboolean           gtk_progress_bar_get_inverted    (GtkProgressBar *pbar);
index 0ddcbfbe4c9a0e0881288762c5507c1041cb5ba3..e39c26c7bf689f9ef332b1bda214bcbdba7f8c86 100644 (file)
  * the speed of animations. This can be useful for debugging.
  */
 
-static gdouble gtk_slowdown = 1.0;
+static double gtk_slowdown = 1.0;
 
 void
-_gtk_set_slowdown (gdouble factor)
+_gtk_set_slowdown (double factor)
 {
   gtk_slowdown = factor;
 }
 
-gdouble
+double
 _gtk_get_slowdown (void)
 {
   return gtk_slowdown;
@@ -77,12 +77,12 @@ void
 gtk_progress_tracker_start (GtkProgressTracker *tracker,
                             guint64 duration,
                             gint64 delay,
-                            gdouble iteration_count)
+                            double iteration_count)
 {
   tracker->is_running = TRUE;
   tracker->last_frame_time = 0;
   tracker->duration = duration;
-  tracker->iteration = - delay / (gdouble) MAX (duration, 1);
+  tracker->iteration = - delay / (double) MAX (duration, 1);
   tracker->iteration_count = iteration_count;
 }
 
@@ -110,7 +110,7 @@ void
 gtk_progress_tracker_advance_frame (GtkProgressTracker *tracker,
                                     guint64             frame_time)
 {
-  gdouble delta;
+  double delta;
 
   if (!tracker->is_running)
     return;
@@ -182,7 +182,7 @@ gtk_progress_tracker_get_state (GtkProgressTracker *tracker)
  *
  * Returns: The current iteration.
  **/
-gdouble
+double
 gtk_progress_tracker_get_iteration (GtkProgressTracker *tracker)
 {
   return tracker->is_running ? CLAMP (tracker->iteration, 0.0, tracker->iteration_count) : 1.0;
@@ -202,7 +202,7 @@ gtk_progress_tracker_get_iteration (GtkProgressTracker *tracker)
 guint64
 gtk_progress_tracker_get_iteration_cycle (GtkProgressTracker *tracker)
 {
-  gdouble iteration = gtk_progress_tracker_get_iteration (tracker);
+  double iteration = gtk_progress_tracker_get_iteration (tracker);
 
   /* Some complexity here. We want an iteration of 0.0 to always map to 0 (start
    * of the first iteration), but an iteration of 1.0 to also map to 0 (end of
@@ -225,11 +225,11 @@ gtk_progress_tracker_get_iteration_cycle (GtkProgressTracker *tracker)
  *
  * Returns: The progress value.
  **/
-gdouble
+double
 gtk_progress_tracker_get_progress (GtkProgressTracker *tracker,
                                    gboolean reversed)
 {
-  gdouble progress, iteration;
+  double progress, iteration;
   guint64 iteration_cycle;
 
   iteration = gtk_progress_tracker_get_iteration (tracker);
@@ -242,10 +242,10 @@ gtk_progress_tracker_get_progress (GtkProgressTracker *tracker,
 /* From clutter-easing.c, based on Robert Penner's
  * infamous easing equations, MIT license.
  */
-static gdouble
-ease_out_cubic (gdouble t)
+static double
+ease_out_cubic (double t)
 {
-  gdouble p = t - 1;
+  double p = t - 1;
   return p * p * p + 1;
 }
 
@@ -259,10 +259,10 @@ ease_out_cubic (gdouble t)
  *
  * Returns: The eased progress value.
  **/
-gdouble
+double
 gtk_progress_tracker_get_ease_out_cubic (GtkProgressTracker *tracker,
                                          gboolean reversed)
 {
-  gdouble progress = gtk_progress_tracker_get_progress (tracker, reversed);
+  double progress = gtk_progress_tracker_get_progress (tracker, reversed);
   return ease_out_cubic (progress);
 }
index 1355dae95bd80f2beca09fdc82f6a1e3624efc56..95adfe5f4d01ef9fef4703288d6b2f757c301cc4 100644 (file)
@@ -38,8 +38,8 @@ struct _GtkProgressTracker
   gboolean is_running;
   guint64 last_frame_time;
   guint64 duration;
-  gdouble iteration;
-  gdouble iteration_count;
+  double iteration;
+  double iteration_count;
 };
 
 void                 gtk_progress_tracker_init_copy           (GtkProgressTracker *source,
@@ -48,7 +48,7 @@ void                 gtk_progress_tracker_init_copy           (GtkProgressTracke
 void                 gtk_progress_tracker_start               (GtkProgressTracker *tracker,
                                                                guint64 duration,
                                                                gint64 delay,
-                                                               gdouble iteration_count);
+                                                               double iteration_count);
 
 void                 gtk_progress_tracker_finish              (GtkProgressTracker *tracker);
 
@@ -60,14 +60,14 @@ void                 gtk_progress_tracker_skip_frame          (GtkProgressTracke
 
 GtkProgressState     gtk_progress_tracker_get_state           (GtkProgressTracker *tracker);
 
-gdouble              gtk_progress_tracker_get_iteration       (GtkProgressTracker *tracker);
+double               gtk_progress_tracker_get_iteration       (GtkProgressTracker *tracker);
 
 guint64              gtk_progress_tracker_get_iteration_cycle (GtkProgressTracker *tracker);
 
-gdouble              gtk_progress_tracker_get_progress        (GtkProgressTracker *tracker,
+double               gtk_progress_tracker_get_progress        (GtkProgressTracker *tracker,
                                                                gboolean reverse);
 
-gdouble              gtk_progress_tracker_get_ease_out_cubic  (GtkProgressTracker *tracker,
+double               gtk_progress_tracker_get_ease_out_cubic  (GtkProgressTracker *tracker,
                                                                gboolean reverse);
 
 G_END_DECLS
index e8b87a1e8869c4c2a363507c29eca0cad724ec9e..cc963ed2bc67c57762687bd7d985c04f3e637ad9 100644 (file)
@@ -89,8 +89,8 @@ struct _GtkRangePrivate
 
   GtkOrientation     orientation;
 
-  gdouble  fill_level;
-  gdouble *marks;
+  double   fill_level;
+  double *marks;
 
   int *mark_pos;
   int   n_marks;
@@ -165,25 +165,25 @@ static void gtk_range_unmap          (GtkWidget        *widget);
 
 static void gtk_range_click_gesture_pressed  (GtkGestureClick *gesture,
                                                    guint                 n_press,
-                                                   gdouble               x,
-                                                   gdouble               y,
+                                                   double                x,
+                                                   double                y,
                                                    GtkRange             *range);
 static void gtk_range_click_gesture_released (GtkGestureClick *gesture,
                                                    guint                 n_press,
-                                                   gdouble               x,
-                                                   gdouble               y,
+                                                   double                x,
+                                                   double                y,
                                                    GtkRange             *range);
 static void gtk_range_drag_gesture_begin          (GtkGestureDrag       *gesture,
-                                                   gdouble               offset_x,
-                                                   gdouble               offset_y,
+                                                   double                offset_x,
+                                                   double                offset_y,
                                                    GtkRange             *range);
 static void gtk_range_drag_gesture_update         (GtkGestureDrag       *gesture,
-                                                   gdouble               offset_x,
-                                                   gdouble               offset_y,
+                                                   double                offset_x,
+                                                   double                offset_y,
                                                    GtkRange             *range);
 static void gtk_range_long_press_gesture_pressed  (GtkGestureLongPress  *gesture,
-                                                   gdouble               x,
-                                                   gdouble               y,
+                                                   double                x,
+                                                   double                y,
                                                    GtkRange             *range);
 
 
@@ -201,7 +201,7 @@ static void gtk_range_move_slider              (GtkRange         *range,
 
 /* Internals */
 static void          gtk_range_compute_slider_position  (GtkRange      *range,
-                                                         gdouble        adjustment_value,
+                                                         double         adjustment_value,
                                                          GdkRectangle  *slider_rect);
 static gboolean      gtk_range_scroll                   (GtkRange      *range,
                                                          GtkScrollType  scroll);
@@ -215,7 +215,7 @@ static void          gtk_range_add_step_timer           (GtkRange      *range,
 static void          gtk_range_remove_step_timer        (GtkRange      *range);
 static gboolean      gtk_range_real_change_value        (GtkRange      *range,
                                                          GtkScrollType  scroll,
-                                                         gdouble        value);
+                                                         double         value);
 static gboolean      gtk_range_key_controller_key_pressed (GtkEventControllerKey *controller,
                                                            guint                  keyval,
                                                            guint                  keycode,
@@ -238,8 +238,8 @@ static void          gtk_range_render_trough            (GtkGizmo     *gizmo,
                                                          GtkSnapshot  *snapshot);
 
 static gboolean      gtk_range_scroll_controller_scroll (GtkEventControllerScroll *scroll,
-                                                         gdouble                   dx,
-                                                         gdouble                   dy,
+                                                         double                    dx,
+                                                         double                    dy,
                                                          GtkRange                 *range);
 
 G_DEFINE_TYPE_WITH_CODE (GtkRange, gtk_range, GTK_TYPE_WIDGET,
@@ -989,8 +989,8 @@ gtk_range_get_slider_range (GtkRange *range,
  **/
 void
 gtk_range_set_increments (GtkRange *range,
-                          gdouble   step,
-                          gdouble   page)
+                          double    step,
+                          double    page)
 {
   GtkRangePrivate *priv = gtk_range_get_instance_private (range);
   GtkAdjustment *adjustment;
@@ -1020,12 +1020,12 @@ gtk_range_set_increments (GtkRange *range,
  **/
 void
 gtk_range_set_range (GtkRange *range,
-                     gdouble   min,
-                     gdouble   max)
+                     double    min,
+                     double    max)
 {
   GtkRangePrivate *priv = gtk_range_get_instance_private (range);
   GtkAdjustment *adjustment;
-  gdouble value;
+  double value;
   
   g_return_if_fail (GTK_IS_RANGE (range));
   g_return_if_fail (min <= max);
@@ -1058,7 +1058,7 @@ gtk_range_set_range (GtkRange *range,
  **/
 void
 gtk_range_set_value (GtkRange *range,
-                     gdouble   value)
+                     double    value)
 {
   GtkRangePrivate *priv = gtk_range_get_instance_private (range);
 
@@ -1079,7 +1079,7 @@ gtk_range_set_value (GtkRange *range,
  * 
  * Returns: current value of the range.
  **/
-gdouble
+double
 gtk_range_get_value (GtkRange *range)
 {
   GtkRangePrivate *priv = gtk_range_get_instance_private (range);
@@ -1217,7 +1217,7 @@ gtk_range_get_restrict_to_fill_level (GtkRange *range)
  **/
 void
 gtk_range_set_fill_level (GtkRange *range,
-                          gdouble   fill_level)
+                          double    fill_level)
 {
   GtkRangePrivate *priv = gtk_range_get_instance_private (range);
 
@@ -1244,7 +1244,7 @@ gtk_range_set_fill_level (GtkRange *range,
  *
  * Returns: The current fill level
  **/
-gdouble
+double
 gtk_range_get_fill_level (GtkRange *range)
 {
   GtkRangePrivate *priv = gtk_range_get_instance_private (range);
@@ -1713,13 +1713,13 @@ range_get_scroll_for_grab (GtkRange *range)
   return GTK_SCROLL_NONE;
 }
 
-static gdouble
+static double
 coord_to_value (GtkRange *range,
-                gdouble   coord)
+                double    coord)
 {
   GtkRangePrivate *priv = gtk_range_get_instance_private (range);
-  gdouble frac;
-  gdouble value;
+  double frac;
+  double value;
   int     trough_length;
   int     slider_length;
   graphene_rect_t slider_bounds;
@@ -1823,8 +1823,8 @@ update_initial_slider_position (GtkRange *range,
 
 static void
 gtk_range_long_press_gesture_pressed (GtkGestureLongPress *gesture,
-                                      gdouble              x,
-                                      gdouble              y,
+                                      double               x,
+                                      double               y,
                                       GtkRange            *range)
 {
   GtkRangePrivate *priv = gtk_range_get_instance_private (range);
@@ -1842,8 +1842,8 @@ gtk_range_long_press_gesture_pressed (GtkGestureLongPress *gesture,
 static void
 gtk_range_click_gesture_pressed (GtkGestureClick *gesture,
                                  guint            n_press,
-                                 gdouble          x,
-                                 gdouble          y,
+                                 double           x,
+                                 double           y,
                                  GtkRange        *range)
 {
   GtkWidget *widget = GTK_WIDGET (range);
@@ -1925,7 +1925,7 @@ gtk_range_click_gesture_pressed (GtkGestureClick *gesture,
     {
       /* jump by pages */
       GtkScrollType scroll;
-      gdouble click_value;
+      double click_value;
 
       click_value = coord_to_value (range,
                                     priv->orientation == GTK_ORIENTATION_VERTICAL ?
@@ -1941,7 +1941,7 @@ gtk_range_click_gesture_pressed (GtkGestureClick *gesture,
            button == GDK_BUTTON_SECONDARY)
     {
       /* autoscroll */
-      gdouble click_value;
+      double click_value;
 
       click_value = coord_to_value (range,
                                     priv->orientation == GTK_ORIENTATION_VERTICAL ?
@@ -1964,8 +1964,8 @@ gtk_range_click_gesture_pressed (GtkGestureClick *gesture,
 static void
 gtk_range_click_gesture_released (GtkGestureClick *gesture,
                                   guint            n_press,
-                                  gdouble          x,
-                                  gdouble          y,
+                                  double           x,
+                                  double           y,
                                   GtkRange        *range)
 {
   GtkRangePrivate *priv = gtk_range_get_instance_private (range);
@@ -1982,14 +1982,14 @@ update_slider_position (GtkRange *range,
 {
   GtkRangePrivate *priv = gtk_range_get_instance_private (range);
   graphene_rect_t trough_bounds;
-  gdouble delta;
-  gdouble c;
-  gdouble new_value;
+  double delta;
+  double c;
+  double new_value;
   gboolean handled;
-  gdouble next_value;
-  gdouble mark_value;
-  gdouble mark_delta;
-  gdouble zoom;
+  double next_value;
+  double mark_value;
+  double mark_delta;
+  double zoom;
   int i;
   double x, y;
 
@@ -2086,10 +2086,10 @@ autoscroll_cb (GtkWidget     *widget,
   GtkRange *range = GTK_RANGE (data);
   GtkRangePrivate *priv = gtk_range_get_instance_private (range);
   GtkAdjustment *adj = priv->adjustment;
-  gdouble increment;
-  gdouble value;
+  double increment;
+  double value;
   gboolean handled;
-  gdouble step, page;
+  double step, page;
 
   step = gtk_adjustment_get_step_increment (adj);
   page = gtk_adjustment_get_page_increment (adj);
@@ -2111,8 +2111,8 @@ autoscroll_cb (GtkWidget     *widget,
     case GTK_SCROLL_START:
     case GTK_SCROLL_END:
       {
-        gdouble x, y;
-        gdouble distance, t;
+        double x, y;
+        double distance, t;
 
         /* Vary scrolling speed from slow (ie step) to fast (2 * page),
          * based on the distance of the pointer from the widget. We start
@@ -2173,12 +2173,12 @@ stop_scrolling (GtkRange *range)
 
 static gboolean
 gtk_range_scroll_controller_scroll (GtkEventControllerScroll *scroll,
-                                    gdouble                   dx,
-                                    gdouble                   dy,
+                                    double                    dx,
+                                    double                    dy,
                                     GtkRange                 *range)
 {
   GtkRangePrivate *priv = gtk_range_get_instance_private (range);
-  gdouble scroll_unit, delta;
+  double scroll_unit, delta;
   gboolean handled;
   GtkOrientation move_orientation;
 
@@ -2252,12 +2252,12 @@ update_autoscroll_mode (GtkRange *range,
 
 static void
 gtk_range_drag_gesture_update (GtkGestureDrag *gesture,
-                               gdouble         offset_x,
-                               gdouble         offset_y,
+                               double          offset_x,
+                               double          offset_y,
                                GtkRange       *range)
 {
   GtkRangePrivate *priv = gtk_range_get_instance_private (range);
-  gdouble start_x, start_y;
+  double start_x, start_y;
 
   if (priv->grab_location == priv->slider_widget)
     {
@@ -2276,8 +2276,8 @@ gtk_range_drag_gesture_update (GtkGestureDrag *gesture,
 
 static void
 gtk_range_drag_gesture_begin (GtkGestureDrag *gesture,
-                              gdouble         offset_x,
-                              gdouble         offset_y,
+                              double          offset_x,
+                              double          offset_y,
                               GtkRange       *range)
 {
   GtkRangePrivate *priv = gtk_range_get_instance_private (range);
@@ -2332,12 +2332,12 @@ gtk_range_adjustment_value_changed (GtkAdjustment *adjustment,
 
 static void
 apply_marks (GtkRange *range, 
-             gdouble   oldval,
-             gdouble  *newval)
+             double    oldval,
+             double   *newval)
 {
   GtkRangePrivate *priv = gtk_range_get_instance_private (range);
   int i;
-  gdouble mark;
+  double mark;
 
   for (i = 0; i < priv->n_marks; i++)
     {
@@ -2355,7 +2355,7 @@ static void
 step_back (GtkRange *range)
 {
   GtkRangePrivate *priv = gtk_range_get_instance_private (range);
-  gdouble newval;
+  double newval;
   gboolean handled;
 
   newval = gtk_adjustment_get_value (priv->adjustment) - gtk_adjustment_get_step_increment (priv->adjustment);
@@ -2368,7 +2368,7 @@ static void
 step_forward (GtkRange *range)
 {
   GtkRangePrivate *priv = gtk_range_get_instance_private (range);
-  gdouble newval;
+  double newval;
   gboolean handled;
 
   newval = gtk_adjustment_get_value (priv->adjustment) + gtk_adjustment_get_step_increment (priv->adjustment);
@@ -2382,7 +2382,7 @@ static void
 page_back (GtkRange *range)
 {
   GtkRangePrivate *priv = gtk_range_get_instance_private (range);
-  gdouble newval;
+  double newval;
   gboolean handled;
 
   newval = gtk_adjustment_get_value (priv->adjustment) - gtk_adjustment_get_page_increment (priv->adjustment);
@@ -2395,7 +2395,7 @@ static void
 page_forward (GtkRange *range)
 {
   GtkRangePrivate *priv = gtk_range_get_instance_private (range);
-  gdouble newval;
+  double newval;
   gboolean handled;
 
   newval = gtk_adjustment_get_value (priv->adjustment) + gtk_adjustment_get_page_increment (priv->adjustment);
@@ -2419,7 +2419,7 @@ static void
 scroll_end (GtkRange *range)
 {
   GtkRangePrivate *priv = gtk_range_get_instance_private (range);
-  gdouble newval;
+  double newval;
   gboolean handled;
 
   newval = gtk_adjustment_get_upper (priv->adjustment) - gtk_adjustment_get_page_size (priv->adjustment);
@@ -2432,7 +2432,7 @@ gtk_range_scroll (GtkRange     *range,
                   GtkScrollType scroll)
 {
   GtkRangePrivate *priv = gtk_range_get_instance_private (range);
-  gdouble old_value = gtk_adjustment_get_value (priv->adjustment);
+  double old_value = gtk_adjustment_get_value (priv->adjustment);
 
   switch (scroll)
     {
@@ -2535,7 +2535,7 @@ gtk_range_move_slider (GtkRange     *range,
 
 static void
 gtk_range_compute_slider_position (GtkRange     *range,
-                                   gdouble       adjustment_value,
+                                   double        adjustment_value,
                                    GdkRectangle *slider_rect)
 {
   GtkRangePrivate *priv = gtk_range_get_instance_private (range);
@@ -2653,7 +2653,7 @@ gtk_range_calc_marks (GtkRange *range)
 static gboolean
 gtk_range_real_change_value (GtkRange      *range,
                              GtkScrollType  scroll,
-                             gdouble        value)
+                             double         value)
 {
   GtkRangePrivate *priv = gtk_range_get_instance_private (range);
 
@@ -2669,7 +2669,7 @@ gtk_range_real_change_value (GtkRange      *range,
 
   if (priv->round_digits >= 0)
     {
-      gdouble power;
+      double power;
       int i;
 
       i = priv->round_digits;
@@ -2779,14 +2779,14 @@ _gtk_range_get_has_origin (GtkRange *range)
 
 void
 _gtk_range_set_stop_values (GtkRange *range,
-                            gdouble  *values,
+                            double   *values,
                             int       n_values)
 {
   GtkRangePrivate *priv = gtk_range_get_instance_private (range);
   int i;
 
   g_free (priv->marks);
-  priv->marks = g_new (gdouble, n_values);
+  priv->marks = g_new (double, n_values);
 
   g_free (priv->mark_pos);
   priv->mark_pos = g_new (int, n_values);
index 2a256381b09eba3cb4081e160fbe83c020b1fa8b..8d83a13f46802d7a42b4bd114b15ce9b6afdeaa8 100644 (file)
@@ -57,7 +57,7 @@ struct _GtkRangeClass
 
   void (* value_changed)    (GtkRange     *range);
   void (* adjust_bounds)    (GtkRange     *range,
-                             gdouble      new_value);
+                             double       new_value);
 
   /* action signals for keybindings */
   void (* move_slider)      (GtkRange     *range,
@@ -69,7 +69,7 @@ struct _GtkRangeClass
 
   gboolean (* change_value) (GtkRange     *range,
                              GtkScrollType scroll,
-                             gdouble       new_value);
+                             double        new_value);
 
   /*< private > */
 
@@ -114,17 +114,17 @@ void               gtk_range_get_slider_range              (GtkRange      *range
 
 GDK_AVAILABLE_IN_ALL
 void               gtk_range_set_increments                (GtkRange      *range,
-                                                            gdouble        step,
-                                                            gdouble        page);
+                                                            double         step,
+                                                            double         page);
 GDK_AVAILABLE_IN_ALL
 void               gtk_range_set_range                     (GtkRange      *range,
-                                                            gdouble        min,
-                                                            gdouble        max);
+                                                            double         min,
+                                                            double         max);
 GDK_AVAILABLE_IN_ALL
 void               gtk_range_set_value                     (GtkRange      *range,
-                                                            gdouble        value);
+                                                            double         value);
 GDK_AVAILABLE_IN_ALL
-gdouble            gtk_range_get_value                     (GtkRange      *range);
+double             gtk_range_get_value                     (GtkRange      *range);
 
 GDK_AVAILABLE_IN_ALL
 void               gtk_range_set_show_fill_level           (GtkRange      *range,
@@ -138,9 +138,9 @@ GDK_AVAILABLE_IN_ALL
 gboolean           gtk_range_get_restrict_to_fill_level    (GtkRange      *range);
 GDK_AVAILABLE_IN_ALL
 void               gtk_range_set_fill_level                (GtkRange      *range,
-                                                            gdouble        fill_level);
+                                                            double         fill_level);
 GDK_AVAILABLE_IN_ALL
-gdouble            gtk_range_get_fill_level                (GtkRange      *range);
+double             gtk_range_get_fill_level                (GtkRange      *range);
 GDK_AVAILABLE_IN_ALL
 void               gtk_range_set_round_digits              (GtkRange      *range,
                                                             int            round_digits);
index d50ed52d7fa4e573aa77201e4a06bd240a755674..f369fec4d0018a1e83a06b3452b0592c03117bc2 100644 (file)
@@ -36,7 +36,7 @@ void               _gtk_range_set_has_origin               (GtkRange      *range
                                                             gboolean       has_origin);
 gboolean           _gtk_range_get_has_origin               (GtkRange      *range);
 void               _gtk_range_set_stop_values              (GtkRange      *range,
-                                                            gdouble       *values,
+                                                            double        *values,
                                                             int            n_values);
 int                _gtk_range_get_stop_positions           (GtkRange      *range,
                                                             int          **values);
index 6ddfa4998a5cdaa7d85803f9350571612a425c0b..e095832cc384b5a2814575ac0c567847ad0c0182 100644 (file)
 static void
 gtk_do_render_icon (GtkStyleContext        *context,
                     cairo_t                *cr,
-                    gdouble                 x,
-                    gdouble                 y,
-                    gdouble                 width,
-                    gdouble                 height)
+                    double                  x,
+                    double                  y,
+                    double                  width,
+                    double                  height)
 {
   GtkSnapshot *snapshot;
   GskRenderNode *node;
@@ -81,10 +81,10 @@ gtk_do_render_icon (GtkStyleContext        *context,
 void
 gtk_render_check (GtkStyleContext *context,
                   cairo_t         *cr,
-                  gdouble          x,
-                  gdouble          y,
-                  gdouble          width,
-                  gdouble          height)
+                  double           x,
+                  double           y,
+                  double           width,
+                  double           height)
 {
   g_return_if_fail (GTK_IS_STYLE_CONTEXT (context));
   g_return_if_fail (cr != NULL);
@@ -115,10 +115,10 @@ gtk_render_check (GtkStyleContext *context,
 void
 gtk_render_option (GtkStyleContext *context,
                    cairo_t         *cr,
-                   gdouble          x,
-                   gdouble          y,
-                   gdouble          width,
-                   gdouble          height)
+                   double           x,
+                   double           y,
+                   double           width,
+                   double           height)
 {
   g_return_if_fail (GTK_IS_STYLE_CONTEXT (context));
   g_return_if_fail (cr != NULL);
@@ -147,10 +147,10 @@ gtk_render_option (GtkStyleContext *context,
 void
 gtk_render_arrow (GtkStyleContext *context,
                   cairo_t         *cr,
-                  gdouble          angle,
-                  gdouble          x,
-                  gdouble          y,
-                  gdouble          size)
+                  double           angle,
+                  double           x,
+                  double           y,
+                  double           size)
 {
   g_return_if_fail (GTK_IS_STYLE_CONTEXT (context));
   g_return_if_fail (cr != NULL);
@@ -180,10 +180,10 @@ gtk_render_arrow (GtkStyleContext *context,
 void
 gtk_render_background (GtkStyleContext *context,
                        cairo_t         *cr,
-                       gdouble          x,
-                       gdouble          y,
-                       gdouble          width,
-                       gdouble          height)
+                       double           x,
+                       double           y,
+                       double           width,
+                       double           height)
 {
   GtkSnapshot *snapshot;
   GskRenderNode *node;
@@ -226,10 +226,10 @@ gtk_render_background (GtkStyleContext *context,
 void
 gtk_render_frame (GtkStyleContext *context,
                   cairo_t         *cr,
-                  gdouble          x,
-                  gdouble          y,
-                  gdouble          width,
-                  gdouble          height)
+                  double           x,
+                  double           y,
+                  double           width,
+                  double           height)
 {
   GtkSnapshot *snapshot;
   GskRenderNode *node;
@@ -273,10 +273,10 @@ gtk_render_frame (GtkStyleContext *context,
 void
 gtk_render_expander (GtkStyleContext *context,
                      cairo_t         *cr,
-                     gdouble          x,
-                     gdouble          y,
-                     gdouble          width,
-                     gdouble          height)
+                     double           x,
+                     double           y,
+                     double           width,
+                     double           height)
 {
   g_return_if_fail (GTK_IS_STYLE_CONTEXT (context));
   g_return_if_fail (cr != NULL);
@@ -305,10 +305,10 @@ gtk_render_expander (GtkStyleContext *context,
 void
 gtk_render_focus (GtkStyleContext *context,
                   cairo_t         *cr,
-                  gdouble          x,
-                  gdouble          y,
-                  gdouble          width,
-                  gdouble          height)
+                  double           x,
+                  double           y,
+                  double           width,
+                  double           height)
 {
   GtkSnapshot *snapshot;
   GskRenderNode *node;
@@ -345,8 +345,8 @@ gtk_render_focus (GtkStyleContext *context,
 void
 gtk_render_layout (GtkStyleContext *context,
                    cairo_t         *cr,
-                   gdouble          x,
-                   gdouble          y,
+                   double           x,
+                   double           y,
                    PangoLayout     *layout)
 {
   GtkSnapshot *snapshot;
@@ -372,10 +372,10 @@ gtk_render_layout (GtkStyleContext *context,
 static void
 gtk_do_render_line (GtkStyleContext *context,
                     cairo_t         *cr,
-                    gdouble          x0,
-                    gdouble          y0,
-                    gdouble          x1,
-                    gdouble          y1)
+                    double           x0,
+                    double           y0,
+                    double           x1,
+                    double           y1)
 {
   const GdkRGBA *color;
 
@@ -409,10 +409,10 @@ gtk_do_render_line (GtkStyleContext *context,
 void
 gtk_render_line (GtkStyleContext *context,
                  cairo_t         *cr,
-                 gdouble          x0,
-                 gdouble          y0,
-                 gdouble          x1,
-                 gdouble          y1)
+                 double           x0,
+                 double           y0,
+                 double           x1,
+                 double           y1)
 {
   g_return_if_fail (GTK_IS_STYLE_CONTEXT (context));
   g_return_if_fail (cr != NULL);
@@ -440,10 +440,10 @@ gtk_render_line (GtkStyleContext *context,
 void
 gtk_render_handle (GtkStyleContext *context,
                    cairo_t         *cr,
-                   gdouble          x,
-                   gdouble          y,
-                   gdouble          width,
-                   gdouble          height)
+                   double           x,
+                   double           y,
+                   double           width,
+                   double           height)
 {
   g_return_if_fail (GTK_IS_STYLE_CONTEXT (context));
   g_return_if_fail (cr != NULL);
@@ -473,10 +473,10 @@ gtk_render_handle (GtkStyleContext *context,
 void
 gtk_render_activity (GtkStyleContext *context,
                      cairo_t         *cr,
-                     gdouble          x,
-                     gdouble          y,
-                     gdouble          width,
-                     gdouble          height)
+                     double           x,
+                     double           y,
+                     double           width,
+                     double           height)
 {
   g_return_if_fail (GTK_IS_STYLE_CONTEXT (context));
   g_return_if_fail (cr != NULL);
@@ -506,8 +506,8 @@ void
 gtk_render_icon (GtkStyleContext *context,
                  cairo_t         *cr,
                  GdkTexture      *texture,
-                 gdouble          x,
-                 gdouble          y)
+                 double           x,
+                 double           y)
 {
   GtkSnapshot *snapshot;
   GskRenderNode *node;
index 645e7d6c158d8df814f8d62404278809da43bc6c..7e4b0b5f15d4e24e0d6aaec99ea2febd74cf7c77 100644 (file)
@@ -34,94 +34,94 @@ G_BEGIN_DECLS
 GDK_AVAILABLE_IN_ALL
 void        gtk_render_check       (GtkStyleContext     *context,
                                     cairo_t             *cr,
-                                    gdouble              x,
-                                    gdouble              y,
-                                    gdouble              width,
-                                    gdouble              height);
+                                    double               x,
+                                    double               y,
+                                    double               width,
+                                    double               height);
 GDK_AVAILABLE_IN_ALL
 void        gtk_render_option      (GtkStyleContext     *context,
                                     cairo_t             *cr,
-                                    gdouble              x,
-                                    gdouble              y,
-                                    gdouble              width,
-                                    gdouble              height);
+                                    double               x,
+                                    double               y,
+                                    double               width,
+                                    double               height);
 GDK_AVAILABLE_IN_ALL
 void        gtk_render_arrow       (GtkStyleContext     *context,
                                     cairo_t             *cr,
-                                    gdouble              angle,
-                                    gdouble              x,
-                                    gdouble              y,
-                                    gdouble              size);
+                                    double               angle,
+                                    double               x,
+                                    double               y,
+                                    double               size);
 GDK_AVAILABLE_IN_ALL
 void        gtk_render_background  (GtkStyleContext     *context,
                                     cairo_t             *cr,
-                                    gdouble              x,
-                                    gdouble              y,
-                                    gdouble              width,
-                                    gdouble              height);
+                                    double               x,
+                                    double               y,
+                                    double               width,
+                                    double               height);
 
 GDK_AVAILABLE_IN_ALL
 void        gtk_render_frame       (GtkStyleContext     *context,
                                     cairo_t             *cr,
-                                    gdouble              x,
-                                    gdouble              y,
-                                    gdouble              width,
-                                    gdouble              height);
+                                    double               x,
+                                    double               y,
+                                    double               width,
+                                    double               height);
 GDK_AVAILABLE_IN_ALL
 void        gtk_render_expander    (GtkStyleContext     *context,
                                     cairo_t             *cr,
-                                    gdouble              x,
-                                    gdouble              y,
-                                    gdouble              width,
-                                    gdouble              height);
+                                    double               x,
+                                    double               y,
+                                    double               width,
+                                    double               height);
 GDK_AVAILABLE_IN_ALL
 void        gtk_render_focus       (GtkStyleContext     *context,
                                     cairo_t             *cr,
-                                    gdouble              x,
-                                    gdouble              y,
-                                    gdouble              width,
-                                    gdouble              height);
+                                    double               x,
+                                    double               y,
+                                    double               width,
+                                    double               height);
 GDK_AVAILABLE_IN_ALL
 void        gtk_render_layout      (GtkStyleContext     *context,
                                     cairo_t             *cr,
-                                    gdouble              x,
-                                    gdouble              y,
+                                    double               x,
+                                    double               y,
                                     PangoLayout         *layout);
 GDK_AVAILABLE_IN_ALL
 void        gtk_render_line        (GtkStyleContext     *context,
                                     cairo_t             *cr,
-                                    gdouble              x0,
-                                    gdouble              y0,
-                                    gdouble              x1,
-                                    gdouble              y1);
+                                    double               x0,
+                                    double               y0,
+                                    double               x1,
+                                    double               y1);
 GDK_AVAILABLE_IN_ALL
 void        gtk_render_slider      (GtkStyleContext     *context,
                                     cairo_t             *cr,
-                                    gdouble              x,
-                                    gdouble              y,
-                                    gdouble              width,
-                                    gdouble              height,
+                                    double               x,
+                                    double               y,
+                                    double               width,
+                                    double               height,
                                     GtkOrientation       orientation);
 GDK_AVAILABLE_IN_ALL
 void        gtk_render_handle      (GtkStyleContext     *context,
                                     cairo_t             *cr,
-                                    gdouble              x,
-                                    gdouble              y,
-                                    gdouble              width,
-                                    gdouble              height);
+                                    double               x,
+                                    double               y,
+                                    double               width,
+                                    double               height);
 GDK_AVAILABLE_IN_ALL
 void        gtk_render_activity    (GtkStyleContext     *context,
                                     cairo_t             *cr,
-                                    gdouble              x,
-                                    gdouble              y,
-                                    gdouble              width,
-                                    gdouble              height);
+                                    double               x,
+                                    double               y,
+                                    double               width,
+                                    double               height);
 GDK_AVAILABLE_IN_ALL
 void        gtk_render_icon        (GtkStyleContext     *context,
                                     cairo_t             *cr,
                                     GdkTexture          *texture,
-                                    gdouble              x,
-                                    gdouble              y);
+                                    double               x,
+                                    double               y);
 G_END_DECLS
 
 #endif /* __GTK_RENDER_H__ */
index 1846ace0f945794d08c9735787806aeb1f2a706f..41c063d5035b567b5a570b0835a477dd15d736f8 100644 (file)
@@ -510,7 +510,7 @@ snapshot_frame_stroke (GtkSnapshot          *snapshot,
 
 static void
 color_shade (const GdkRGBA *color,
-             gdouble        factor,
+             double         factor,
              GdkRGBA       *color_return)
 {
   GtkHSLA hsla;
index f63bbf1e549d1af4c021e76a7729e6aebeec0bb1..2571d824275013c31e456b772fc4f25ff3ac3aef 100644 (file)
@@ -100,9 +100,9 @@ typedef struct {
   GtkRevealerTransitionType transition_type;
   guint transition_duration;
 
-  gdouble current_pos;
-  gdouble source_pos;
-  gdouble target_pos;
+  double current_pos;
+  double source_pos;
+  double target_pos;
 
   guint tick_id;
   GtkProgressTracker tracker;
@@ -123,7 +123,7 @@ static void gtk_revealer_measure (GtkWidget      *widget,
                                   int            *natural_baseline);
 
 static void     gtk_revealer_set_position (GtkRevealer *revealer,
-                                           gdouble      pos);
+                                           double       pos);
 
 static void gtk_revealer_buildable_iface_init (GtkBuildableIface *iface);
 
@@ -552,7 +552,7 @@ gtk_revealer_size_allocate (GtkWidget *widget,
 
 static void
 gtk_revealer_set_position (GtkRevealer *revealer,
-                           gdouble      pos)
+                           double       pos)
 {
   GtkRevealerPrivate *priv = gtk_revealer_get_instance_private (revealer);
   gboolean new_visible;
@@ -595,7 +595,7 @@ gtk_revealer_animate_cb (GtkWidget     *widget,
 {
   GtkRevealer *revealer = GTK_REVEALER (widget);
   GtkRevealerPrivate *priv = gtk_revealer_get_instance_private (revealer);
-  gdouble ease;
+  double ease;
 
   gtk_progress_tracker_advance_frame (&priv->tracker,
                                       gdk_frame_clock_get_frame_time (frame_clock));
@@ -614,7 +614,7 @@ gtk_revealer_animate_cb (GtkWidget     *widget,
 
 static void
 gtk_revealer_start_animation (GtkRevealer *revealer,
-                              gdouble      target)
+                              double       target)
 {
   GtkRevealerPrivate *priv = gtk_revealer_get_instance_private (revealer);
   GtkWidget *widget = GTK_WIDGET (revealer);
index d022863557f13c2db793562506250224b55ba36a..c068c8587d9de84b13d5a320ded3b55b20d248e2 100644 (file)
@@ -56,8 +56,8 @@ _gtk_rounded_box_init_rect (GskRoundedRect *box,
 static void
 gtk_rounded_box_clamp_border_radius (GskRoundedRect *box)
 {
-  gdouble factor = 1.0;
-  gdouble corners;
+  double factor = 1.0;
+  double corners;
 
   corners = box->corner[GSK_CORNER_TOP_LEFT].width + box->corner[GSK_CORNER_TOP_RIGHT].width;
   if (corners != 0)
index 791cac94ed9f0b5155d0bc0061503fee84051512..5e649eeaa24694dc124702816ccc936a8eee2e04 100644 (file)
@@ -159,7 +159,7 @@ struct _GtkScalePrivate
 
 struct _GtkScaleMark
 {
-  gdouble          value;
+  double           value;
   int              stop_position;
   char            *markup;
   GtkWidget       *label_widget;
@@ -214,7 +214,7 @@ static void     gtk_scale_buildable_custom_finished  (GtkBuildable       *builda
                                                       const char         *tagname,
                                                       gpointer            user_data);
 static char   * gtk_scale_format_value               (GtkScale           *scale,
-                                                      gdouble             value);
+                                                      double              value);
 
 
 G_DEFINE_TYPE_WITH_CODE (GtkScale, gtk_scale, GTK_TYPE_RANGE,
@@ -288,14 +288,14 @@ gtk_scale_notify (GObject    *object,
       GtkScaleMark *mark;
       GSList *m;
       int i, n;
-      gdouble *values;
+      double *values;
 
       priv->marks = g_slist_sort_with_data (priv->marks,
                                             compare_marks,
                                             GINT_TO_POINTER (gtk_range_get_inverted (GTK_RANGE (scale))));
 
       n = g_slist_length (priv->marks);
-      values = g_new (gdouble, n);
+      values = g_new (double, n);
       for (m = priv->marks, i = 0; m; m = m->next, i++)
         {
           mark = m->data;
@@ -945,9 +945,9 @@ gtk_scale_new (GtkOrientation  orientation,
  */
 GtkWidget *
 gtk_scale_new_with_range (GtkOrientation orientation,
-                          gdouble        min,
-                          gdouble        max,
-                          gdouble        step)
+                          double         min,
+                          double         max,
+                          double         step)
 {
   GtkAdjustment *adj;
   int digits;
@@ -1654,7 +1654,7 @@ gtk_scale_clear_marks (GtkScale *scale)
  */
 void
 gtk_scale_add_mark (GtkScale        *scale,
-                    gdouble          value,
+                    double           value,
                     GtkPositionType  position,
                     const char      *markup)
 {
@@ -1662,7 +1662,7 @@ gtk_scale_add_mark (GtkScale        *scale,
   GtkScalePrivate *priv = gtk_scale_get_instance_private (scale);
   GtkScaleMark *mark;
   GSList *m;
-  gdouble *values;
+  double *values;
   int n, i;
   GtkWidget *marks_widget;
 
@@ -1758,7 +1758,7 @@ gtk_scale_add_mark (GtkScale        *scale,
     }
 
   n = g_slist_length (priv->marks);
-  values = g_new (gdouble, n);
+  values = g_new (double, n);
   for (m = priv->marks, i = 0; m; m = m->next, i++)
     {
       mark = m->data;
@@ -1797,7 +1797,7 @@ typedef struct
 
 typedef struct
 {
-  gdouble value;
+  double value;
   GtkPositionType position;
   GString *markup;
   char *context;
@@ -1835,7 +1835,7 @@ marks_start_element (GtkBuildableParseContext *context,
   else if (strcmp (element_name, "mark") == 0)
     {
       const char *value_str;
-      gdouble value = 0;
+      double value = 0;
       const char *position_str = NULL;
       GtkPositionType position = GTK_POS_BOTTOM;
       const char *msg_context = NULL;
index 5dd9609bd523435e8f7d6c2607e5af816ae0d731..3b650e027173ef2e0fd94e5174c15e49c8b5f6c4 100644 (file)
@@ -86,9 +86,9 @@ GtkWidget       * gtk_scale_new                (GtkOrientation   orientation,
                                                 GtkAdjustment   *adjustment);
 GDK_AVAILABLE_IN_ALL
 GtkWidget       * gtk_scale_new_with_range     (GtkOrientation   orientation,
-                                                gdouble          min,
-                                                gdouble          max,
-                                                gdouble          step);
+                                                double           min,
+                                                double           max,
+                                                double           step);
 GDK_AVAILABLE_IN_ALL
 void              gtk_scale_set_digits         (GtkScale        *scale,
                                                 int              digits);
@@ -119,7 +119,7 @@ void              gtk_scale_get_layout_offsets (GtkScale        *scale,
 
 GDK_AVAILABLE_IN_ALL
 void              gtk_scale_add_mark           (GtkScale        *scale,
-                                                gdouble          value,
+                                                double           value,
                                                 GtkPositionType  position,
                                                 const char      *markup);
 GDK_AVAILABLE_IN_ALL
index 1924f7e9570ba65de7ee50d8e242a9fb4956cceb..11ddc585e22aad07b13165153c1efdfe1301706b 100644 (file)
@@ -159,8 +159,8 @@ static void     cb_popup_mapped                 (GtkWidget           *popup,
                                                  gpointer             user_data);
 
 static gboolean gtk_scale_button_scroll_controller_scroll (GtkEventControllerScroll *scroll,
-                                                           gdouble                   dx,
-                                                           gdouble                   dy,
+                                                           double                    dx,
+                                                           double                    dy,
                                                            GtkScaleButton           *button);
 
 G_DEFINE_TYPE_WITH_CODE (GtkScaleButton, gtk_scale_button, GTK_TYPE_WIDGET,
@@ -547,9 +547,9 @@ gtk_scale_button_dispose (GObject *object)
  * Returns: a new #GtkScaleButton
  */
 GtkWidget *
-gtk_scale_button_new (gdouble       min,
-                     gdouble       max,
-                     gdouble       step,
+gtk_scale_button_new (double        min,
+                     double        max,
+                     double        step,
                      const char **icons)
 {
   GtkScaleButton *button;
@@ -573,7 +573,7 @@ gtk_scale_button_new (gdouble       min,
  *
  * Returns: current value of the scale button
  */
-gdouble
+double
 gtk_scale_button_get_value (GtkScaleButton * button)
 {
   GtkScaleButtonPrivate *priv = gtk_scale_button_get_instance_private (button);
@@ -595,7 +595,7 @@ gtk_scale_button_get_value (GtkScaleButton * button)
  */
 void
 gtk_scale_button_set_value (GtkScaleButton *button,
-                           gdouble         value)
+                           double          value)
 {
   GtkScaleButtonPrivate *priv = gtk_scale_button_get_instance_private (button);
 
@@ -753,13 +753,13 @@ gtk_scale_button_set_orientation_private (GtkScaleButton *button,
 
 static gboolean
 gtk_scale_button_scroll_controller_scroll (GtkEventControllerScroll *scroll,
-                                           gdouble                   dx,
-                                           gdouble                   dy,
+                                           double                    dx,
+                                           double                    dy,
                                            GtkScaleButton           *button)
 {
   GtkScaleButtonPrivate *priv = gtk_scale_button_get_instance_private (button);
   GtkAdjustment *adjustment;
-  gdouble d;
+  double d;
 
   adjustment = priv->adjustment;
 
@@ -811,7 +811,7 @@ button_click (GtkScaleButton *button,
   GtkScaleButtonPrivate *priv = gtk_scale_button_get_instance_private (button);
   GtkAdjustment *adjustment = priv->adjustment;
   gboolean can_continue = TRUE;
-  gdouble val;
+  double val;
 
   val = gtk_scale_button_get_value (button);
 
@@ -864,7 +864,7 @@ gtk_scale_button_update_icon (GtkScaleButton *button)
 {
   GtkScaleButtonPrivate *priv = gtk_scale_button_get_instance_private (button);
   GtkAdjustment *adjustment;
-  gdouble value;
+  double value;
   const char *name;
   guint num_icons;
 
@@ -889,7 +889,7 @@ gtk_scale_button_update_icon (GtkScaleButton *button)
   /* The 2-icons special case */
   if (num_icons == 2)
     {
-      gdouble limit;
+      double limit;
 
       limit = (gtk_adjustment_get_upper (adjustment) - gtk_adjustment_get_lower (adjustment)) / 2 + gtk_adjustment_get_lower (adjustment);
       if (value < limit)
@@ -912,7 +912,7 @@ gtk_scale_button_update_icon (GtkScaleButton *button)
     }
   else
     {
-      gdouble step;
+      double step;
       guint i;
 
       step = (gtk_adjustment_get_upper (adjustment) - gtk_adjustment_get_lower (adjustment)) / (num_icons - 2); i = (guint) ((value - gtk_adjustment_get_lower (adjustment)) / step) + 2;
@@ -929,8 +929,8 @@ cb_scale_value_changed (GtkRange *range,
 {
   GtkScaleButton *button = user_data;
   GtkScaleButtonPrivate *priv = gtk_scale_button_get_instance_private (button);
-  gdouble value;
-  gdouble upper, lower;
+  double value;
+  double upper, lower;
 
   value = gtk_range_get_value (range);
   upper = gtk_adjustment_get_upper (priv->adjustment);
index 7226d92ee58439520782b18bf4bdfec4ee1522cb..309e75eb652700042c290e2b0f1f3d2c8ef4b074 100644 (file)
@@ -63,7 +63,7 @@ struct _GtkScaleButtonClass
 
   /* signals */
   void (* value_changed) (GtkScaleButton *button,
-                           gdouble         value);
+                           double          value);
 
   /*< private >*/
 
@@ -73,18 +73,18 @@ struct _GtkScaleButtonClass
 GDK_AVAILABLE_IN_ALL
 GType            gtk_scale_button_get_type         (void) G_GNUC_CONST;
 GDK_AVAILABLE_IN_ALL
-GtkWidget *      gtk_scale_button_new              (gdouble          min,
-                                                    gdouble          max,
-                                                    gdouble          step,
+GtkWidget *      gtk_scale_button_new              (double           min,
+                                                    double           max,
+                                                    double           step,
                                                     const char     **icons);
 GDK_AVAILABLE_IN_ALL
 void             gtk_scale_button_set_icons        (GtkScaleButton  *button,
                                                     const char     **icons);
 GDK_AVAILABLE_IN_ALL
-gdouble          gtk_scale_button_get_value        (GtkScaleButton  *button);
+double           gtk_scale_button_get_value        (GtkScaleButton  *button);
 GDK_AVAILABLE_IN_ALL
 void             gtk_scale_button_set_value        (GtkScaleButton  *button,
-                                                    gdouble          value);
+                                                    double           value);
 GDK_AVAILABLE_IN_ALL
 GtkAdjustment *  gtk_scale_button_get_adjustment   (GtkScaleButton  *button);
 GDK_AVAILABLE_IN_ALL
index acc77cb8fd1f81602c7fc7ac1701cbf5284294ac..91d6c2e91ca74ed26fb0cebdc86f7800816cfcca 100644 (file)
@@ -229,9 +229,9 @@ typedef struct
   gint64     last_scroll_time;
   guint      conceil_timer;
 
-  gdouble    current_pos;
-  gdouble    source_pos;
-  gdouble    target_pos;
+  double     current_pos;
+  double     source_pos;
+  double     target_pos;
   GtkProgressTracker tracker;
   guint      tick_id;
   guint      over_timeout_id;
@@ -280,8 +280,8 @@ typedef struct
   GtkGesture *drag_gesture;
   GtkGesture *pan_gesture;
 
-  gdouble drag_start_x;
-  gdouble drag_start_y;
+  double drag_start_x;
+  double drag_start_y;
 
   guint                  kinetic_scrolling         : 1;
   guint                  capture_button_press      : 1;
@@ -289,11 +289,11 @@ typedef struct
 
   guint                  deceleration_id;
 
-  gdouble                x_velocity;
-  gdouble                y_velocity;
+  double                 x_velocity;
+  double                 y_velocity;
 
-  gdouble                unclamped_hadj_value;
-  gdouble                unclamped_vadj_value;
+  double                 unclamped_hadj_value;
+  double                 unclamped_vadj_value;
 } GtkScrolledWindowPrivate;
 
 typedef struct
@@ -386,7 +386,7 @@ static void  gtk_scrolled_window_unmap                 (GtkWidget           *wid
 static void  gtk_scrolled_window_realize               (GtkWidget           *widget);
 static void _gtk_scrolled_window_set_adjustment_value  (GtkScrolledWindow *scrolled_window,
                                                         GtkAdjustment     *adjustment,
-                                                        gdouble            value);
+                                                        double             value);
 
 static void gtk_scrolled_window_cancel_deceleration (GtkScrolledWindow *scrolled_window);
 
@@ -402,7 +402,7 @@ static void     remove_indicator     (GtkScrolledWindow *sw,
 static gboolean maybe_hide_indicator (gpointer data);
 
 static void     indicator_start_fade (Indicator *indicator,
-                                      gdouble    pos);
+                                      double     pos);
 static void     indicator_set_over   (Indicator *indicator,
                                       gboolean   over);
 
@@ -900,8 +900,8 @@ policy_may_be_visible (GtkPolicyType policy)
 
 static void
 scrolled_window_drag_begin_cb (GtkScrolledWindow *scrolled_window,
-                               gdouble            start_x,
-                               gdouble            start_y,
+                               double             start_x,
+                               double             start_y,
                                GtkGesture        *gesture)
 {
   GtkScrolledWindowPrivate *priv = gtk_scrolled_window_get_instance_private (scrolled_window);
@@ -947,14 +947,14 @@ gtk_scrolled_window_invalidate_overshoot (GtkScrolledWindow *scrolled_window)
 
 static void
 scrolled_window_drag_update_cb (GtkScrolledWindow *scrolled_window,
-                                gdouble            offset_x,
-                                gdouble            offset_y,
+                                double             offset_x,
+                                double             offset_y,
                                 GtkGesture        *gesture)
 {
   GtkScrolledWindowPrivate *priv = gtk_scrolled_window_get_instance_private (scrolled_window);
   GtkAdjustment *hadjustment;
   GtkAdjustment *vadjustment;
-  gdouble dx, dy;
+  double dx, dy;
 
   gtk_scrolled_window_invalidate_overshoot (scrolled_window);
 
@@ -999,8 +999,8 @@ scrolled_window_drag_end_cb (GtkScrolledWindow *scrolled_window,
 
 static void
 gtk_scrolled_window_decelerate (GtkScrolledWindow *scrolled_window,
-                                gdouble            x_velocity,
-                                gdouble            y_velocity)
+                                double             x_velocity,
+                                double             y_velocity)
 {
   GtkScrolledWindowPrivate *priv = gtk_scrolled_window_get_instance_private (scrolled_window);
   gboolean overshoot;
@@ -1024,16 +1024,16 @@ gtk_scrolled_window_decelerate (GtkScrolledWindow *scrolled_window,
 
 static void
 scrolled_window_swipe_cb (GtkScrolledWindow *scrolled_window,
-                          gdouble            x_velocity,
-                          gdouble            y_velocity)
+                          double             x_velocity,
+                          double             y_velocity)
 {
   gtk_scrolled_window_decelerate (scrolled_window, -x_velocity, -y_velocity);
 }
 
 static void
 scrolled_window_long_press_cb (GtkScrolledWindow *scrolled_window,
-                               gdouble            x,
-                               gdouble            y,
+                               double             x,
+                               double             y,
                                GtkGesture        *gesture)
 {
   GdkEventSequence *sequence;
@@ -1116,8 +1116,8 @@ indicator_set_over (Indicator *indicator,
 static gboolean
 coords_close_to_indicator (GtkScrolledWindow *sw,
                            Indicator         *indicator,
-                           gdouble            x,
-                           gdouble            y)
+                           double             x,
+                           double             y)
 {
   GtkScrolledWindowPrivate *priv = gtk_scrolled_window_get_instance_private (sw);
   graphene_rect_t indicator_bounds;
@@ -1162,8 +1162,8 @@ static gboolean
 check_update_scrollbar_proximity (GtkScrolledWindow *sw,
                                   Indicator         *indicator,
                                   GtkWidget         *target,
-                                  gdouble            x,
-                                  gdouble            y)
+                                  double             x,
+                                  double             y)
 {
   GtkScrolledWindowPrivate *priv = gtk_scrolled_window_get_instance_private (sw);
   gboolean indicator_close, on_scrollbar, on_other_scrollbar;
@@ -1196,17 +1196,17 @@ check_update_scrollbar_proximity (GtkScrolledWindow *sw,
   return indicator_close;
 }
 
-static gdouble
+static double
 get_scroll_unit (GtkScrolledWindow *sw,
                  GtkOrientation     orientation)
 {
-  gdouble scroll_unit;
+  double scroll_unit;
 
 #ifndef GDK_WINDOWING_QUARTZ
   GtkScrolledWindowPrivate *priv = gtk_scrolled_window_get_instance_private (sw);
   GtkScrollbar *scrollbar;
   GtkAdjustment *adj;
-  gdouble page_size;
+  double page_size;
 
   if (orientation == GTK_ORIENTATION_HORIZONTAL)
     scrollbar = GTK_SCROLLBAR (priv->hscrollbar);
@@ -1316,8 +1316,8 @@ scroll_controller_scroll_begin (GtkEventControllerScroll *scroll,
 
 static gboolean
 scroll_controller_scroll (GtkEventControllerScroll *scroll,
-                          gdouble                   delta_x,
-                          gdouble                   delta_y,
+                          double                    delta_x,
+                          double                    delta_y,
                           GtkScrolledWindow        *scrolled_window)
 {
   GtkScrolledWindowPrivate *priv = gtk_scrolled_window_get_instance_private (scrolled_window);
@@ -1331,7 +1331,7 @@ scroll_controller_scroll (GtkEventControllerScroll *scroll,
 
   if (shifted)
     {
-      gdouble delta;
+      double delta;
 
       delta = delta_x;
       delta_x = delta_y;
@@ -1342,8 +1342,8 @@ scroll_controller_scroll (GtkEventControllerScroll *scroll,
       may_hscroll (scrolled_window))
     {
       GtkAdjustment *adj;
-      gdouble new_value;
-      gdouble scroll_unit;
+      double new_value;
+      double scroll_unit;
 
       adj = gtk_scrollbar_get_adjustment (GTK_SCROLLBAR (priv->hscrollbar));
       scroll_unit = get_scroll_unit (scrolled_window, GTK_ORIENTATION_HORIZONTAL);
@@ -1357,8 +1357,8 @@ scroll_controller_scroll (GtkEventControllerScroll *scroll,
       may_vscroll (scrolled_window))
     {
       GtkAdjustment *adj;
-      gdouble new_value;
-      gdouble scroll_unit;
+      double new_value;
+      double scroll_unit;
 
       adj = gtk_scrollbar_get_adjustment (GTK_SCROLLBAR (priv->vscrollbar));
       scroll_unit = get_scroll_unit (scrolled_window, GTK_ORIENTATION_VERTICAL);
@@ -1398,11 +1398,11 @@ scroll_controller_scroll_end (GtkEventControllerScroll *scroll,
 
 static void
 scroll_controller_decelerate (GtkEventControllerScroll *scroll,
-                              gdouble                   initial_vel_x,
-                              gdouble                   initial_vel_y,
+                              double                    initial_vel_x,
+                              double                    initial_vel_y,
                               GtkScrolledWindow        *scrolled_window)
 {
-  gdouble unit_x, unit_y;
+  double unit_x, unit_y;
   gboolean shifted;
   GdkModifierType state;
 
@@ -2898,7 +2898,7 @@ gtk_scrolled_window_scroll_child (GtkScrolledWindow *scrolled_window,
 
   if (adjustment)
     {
-      gdouble value = gtk_adjustment_get_value (adjustment);
+      double value = gtk_adjustment_get_value (adjustment);
       
       switch (scroll)
         {
@@ -3028,7 +3028,7 @@ _gtk_scrolled_window_get_overshoot (GtkScrolledWindow *scrolled_window,
 {
   GtkScrolledWindowPrivate *priv = gtk_scrolled_window_get_instance_private (scrolled_window);
   GtkAdjustment *vadjustment, *hadjustment;
-  gdouble lower, upper, x, y;
+  double lower, upper, x, y;
 
   /* Vertical overshoot */
   vadjustment = gtk_scrollbar_get_adjustment (GTK_SCROLLBAR (priv->vscrollbar));
@@ -3201,10 +3201,10 @@ uninstall_scroll_cursor (GtkScrolledWindow *scrolled_window)
 static void
 _gtk_scrolled_window_set_adjustment_value (GtkScrolledWindow *scrolled_window,
                                            GtkAdjustment     *adjustment,
-                                           gdouble            value)
+                                           double             value)
 {
   GtkScrolledWindowPrivate *priv = gtk_scrolled_window_get_instance_private (scrolled_window);
-  gdouble lower, upper, *prev_value;
+  double lower, upper, *prev_value;
   GtkPositionType edge_pos;
   gboolean vertical;
 
@@ -3257,7 +3257,7 @@ scrolled_window_deceleration_cb (GtkWidget         *widget,
   GtkScrolledWindowPrivate *priv = gtk_scrolled_window_get_instance_private (scrolled_window);
   GtkAdjustment *hadjustment, *vadjustment;
   gint64 current_time;
-  gdouble position, elapsed;
+  double position, elapsed;
 
   current_time = gdk_frame_clock_get_frame_time (frame_clock);
   elapsed = (current_time - data->last_deceleration_time) / 1000000.0;
@@ -3338,7 +3338,7 @@ gtk_scrolled_window_start_deceleration (GtkScrolledWindow *scrolled_window)
 
   if (may_hscroll (scrolled_window))
     {
-      gdouble lower,upper;
+      double lower,upper;
       GtkAdjustment *hadjustment;
 
       hadjustment = gtk_scrollbar_get_adjustment (GTK_SCROLLBAR (priv->hscrollbar));
@@ -3357,7 +3357,7 @@ gtk_scrolled_window_start_deceleration (GtkScrolledWindow *scrolled_window)
 
   if (may_vscroll (scrolled_window))
     {
-      gdouble lower,upper;
+      double lower,upper;
       GtkAdjustment *vadjustment;
 
       vadjustment = gtk_scrollbar_get_adjustment (GTK_SCROLLBAR (priv->vscrollbar));
@@ -3456,7 +3456,7 @@ maybe_emit_edge_reached (GtkScrolledWindow *scrolled_window,
                          GtkAdjustment *adjustment)
 {
   GtkScrolledWindowPrivate *priv = gtk_scrolled_window_get_instance_private (scrolled_window);
-  gdouble value, lower, upper, page_size;
+  double value, lower, upper, page_size;
   GtkPositionType edge_pos;
   gboolean vertical;
 
@@ -3591,7 +3591,7 @@ gtk_scrolled_window_unmap (GtkWidget *widget)
 
 static void
 indicator_set_fade (Indicator *indicator,
-                    gdouble    pos)
+                    double     pos)
 {
   gboolean visible, changed;
 
@@ -3623,7 +3623,7 @@ indicator_fade_cb (GtkWidget     *widget,
                    gpointer       user_data)
 {
   Indicator *indicator = user_data;
-  gdouble t;
+  double t;
 
   gtk_progress_tracker_advance_frame (&indicator->tracker,
                                       gdk_frame_clock_get_frame_time (frame_clock));
@@ -3643,7 +3643,7 @@ indicator_fade_cb (GtkWidget     *widget,
 
 static void
 indicator_start_fade (Indicator *indicator,
-                      gdouble    target)
+                      double     target)
 {
   if (indicator->target_pos == target)
     return;
index 65989011b8b658a0a0c13f3f055556f6b0e280f5..332f46fe2a5edd9ed4d256ace3c1a849f19a6b68 100644 (file)
@@ -1804,7 +1804,7 @@ gtk_settings_load_from_key_file (GtkSettings       *settings,
 
         case G_TYPE_DOUBLE:
           {
-            gdouble d_val;
+            double d_val;
 
             g_value_init (&svalue.value, G_TYPE_DOUBLE);
             d_val = g_key_file_get_double (keyfile, "Settings", key, &error);
index 462becb9741f2ee1340825b81551328c3757072e..aa8407611b54a7915c7b45e06e24c881873985b5 100644 (file)
@@ -121,7 +121,7 @@ static gboolean gtk_shortcuts_section_change_current_page (GtkShortcutsSection *
 
 static void gtk_shortcuts_section_pan_gesture_pan (GtkGesturePan       *gesture,
                                                    GtkPanDirection      direction,
-                                                   gdouble              offset,
+                                                   double               offset,
                                                    GtkShortcutsSection *self);
 
 static GtkBuildableIface *parent_buildable_iface;
@@ -753,7 +753,7 @@ gtk_shortcuts_section_change_current_page (GtkShortcutsSection *self,
 static void
 gtk_shortcuts_section_pan_gesture_pan (GtkGesturePan       *gesture,
                                        GtkPanDirection      direction,
-                                       gdouble              offset,
+                                       double               offset,
                                        GtkShortcutsSection *self)
 {
   if (offset < 50)
index b9c99ffb83033170d2bf40ecb9bd8dc519a9d2f8..7de659416785388c5f169aec21daed941c4840d3 100644 (file)
@@ -1706,10 +1706,10 @@ gtk_snapshot_append_color (GtkSnapshot           *snapshot,
 void
 gtk_snapshot_render_background (GtkSnapshot     *snapshot,
                                 GtkStyleContext *context,
-                                gdouble          x,
-                                gdouble          y,
-                                gdouble          width,
-                                gdouble          height)
+                                double           x,
+                                double           y,
+                                double           width,
+                                double           height)
 {
   GtkCssBoxes boxes;
 
@@ -1738,10 +1738,10 @@ gtk_snapshot_render_background (GtkSnapshot     *snapshot,
 void
 gtk_snapshot_render_frame (GtkSnapshot     *snapshot,
                            GtkStyleContext *context,
-                           gdouble          x,
-                           gdouble          y,
-                           gdouble          width,
-                           gdouble          height)
+                           double           x,
+                           double           y,
+                           double           width,
+                           double           height)
 {
   GtkCssBoxes boxes;
 
@@ -1770,10 +1770,10 @@ gtk_snapshot_render_frame (GtkSnapshot     *snapshot,
 void
 gtk_snapshot_render_focus (GtkSnapshot     *snapshot,
                            GtkStyleContext *context,
-                           gdouble          x,
-                           gdouble          y,
-                           gdouble          width,
-                           gdouble          height)
+                           double           x,
+                           double           y,
+                           double           width,
+                           double           height)
 {
   GtkCssBoxes boxes;
 
@@ -1801,8 +1801,8 @@ gtk_snapshot_render_focus (GtkSnapshot     *snapshot,
 void
 gtk_snapshot_render_layout (GtkSnapshot     *snapshot,
                             GtkStyleContext *context,
-                            gdouble          x,
-                            gdouble          y,
+                            double           x,
+                            double           y,
                             PangoLayout     *layout)
 {
   const bool needs_translate = (x != 0 || y != 0);
index 91c050d04891cbe22d9487f0fc7c4c14dca80ea7..406a02da5818d181e4aef45374d0d2cc375c156b 100644 (file)
@@ -195,35 +195,35 @@ void            gtk_snapshot_append_layout              (GtkSnapshot
 GDK_AVAILABLE_IN_ALL
 void            gtk_snapshot_render_background          (GtkSnapshot            *snapshot,
                                                          GtkStyleContext        *context,
-                                                         gdouble                 x,
-                                                         gdouble                 y,
-                                                         gdouble                 width,
-                                                         gdouble                 height);
+                                                         double                  x,
+                                                         double                  y,
+                                                         double                  width,
+                                                         double                  height);
 GDK_AVAILABLE_IN_ALL
 void            gtk_snapshot_render_frame               (GtkSnapshot            *snapshot,
                                                          GtkStyleContext        *context,
-                                                         gdouble                 x,
-                                                         gdouble                 y,
-                                                         gdouble                 width,
-                                                         gdouble                 height);
+                                                         double                  x,
+                                                         double                  y,
+                                                         double                  width,
+                                                         double                  height);
 GDK_AVAILABLE_IN_ALL
 void            gtk_snapshot_render_focus               (GtkSnapshot            *snapshot,
                                                          GtkStyleContext        *context,
-                                                         gdouble                 x,
-                                                         gdouble                 y,
-                                                         gdouble                 width,
-                                                         gdouble                 height);
+                                                         double                  x,
+                                                         double                  y,
+                                                         double                  width,
+                                                         double                  height);
 GDK_AVAILABLE_IN_ALL
 void            gtk_snapshot_render_layout              (GtkSnapshot            *snapshot,
                                                          GtkStyleContext        *context,
-                                                         gdouble                 x,
-                                                         gdouble                 y,
+                                                         double                  x,
+                                                         double                  y,
                                                          PangoLayout            *layout);
 GDK_AVAILABLE_IN_ALL /* in gtkstylecontext.c */
 void            gtk_snapshot_render_insertion_cursor    (GtkSnapshot            *snapshot,
                                                          GtkStyleContext        *context,
-                                                         gdouble                 x,
-                                                         gdouble                 y,
+                                                         double                  x,
+                                                         double                  y,
                                                          PangoLayout            *layout,
                                                          int                     index,
                                                          PangoDirection          direction);
index 512fbdd3c8b9fe04a859df9e37b056dd8caed26f..7e7460490f4e480d160d40848a6d7e14f64712b4 100644 (file)
@@ -202,8 +202,8 @@ struct _GtkSpinButton
 
   GtkSpinButtonUpdatePolicy update_policy;
 
-  gdouble        climb_rate;
-  gdouble        timer_step;
+  double         climb_rate;
+  double         timer_step;
 
   int            width_chars;
 
@@ -223,7 +223,7 @@ struct _GtkSpinButtonClass
   GtkWidgetClass parent_class;
 
   int (*input)  (GtkSpinButton *spin_button,
-                 gdouble       *new_value);
+                 double        *new_value);
   int (*output) (GtkSpinButton *spin_button);
   void (*value_changed) (GtkSpinButton *spin_button);
 
@@ -286,18 +286,18 @@ static void gtk_spin_button_unset_adjustment (GtkSpinButton *spin_button);
 static void gtk_spin_button_set_orientation (GtkSpinButton     *spin_button,
                                              GtkOrientation     orientation);
 static void gtk_spin_button_snap           (GtkSpinButton      *spin_button,
-                                            gdouble             val);
+                                            double              val);
 static void gtk_spin_button_insert_text    (GtkEditable        *editable,
                                             const char         *new_text,
                                             int                 new_text_length,
                                             int                *position);
 static void gtk_spin_button_real_spin      (GtkSpinButton      *spin_button,
-                                            gdouble             step);
+                                            double              step);
 static void gtk_spin_button_real_change_value (GtkSpinButton   *spin,
                                                GtkScrollType    scroll);
 
 static int gtk_spin_button_default_input   (GtkSpinButton      *spin_button,
-                                            gdouble            *new_val);
+                                            double             *new_val);
 static void gtk_spin_button_default_output (GtkSpinButton      *spin_button);
 
 static void gtk_spin_button_update_width_chars (GtkSpinButton *spin_button);
@@ -766,7 +766,7 @@ swipe_gesture_update (GtkGesture       *gesture,
                       GdkEventSequence *sequence,
                       GtkSpinButton    *spin_button)
 {
-  gdouble vel_y;
+  double vel_y;
 
   gtk_gesture_swipe_get_velocity (GTK_GESTURE_SWIPE (gesture), NULL, &vel_y);
   gtk_spin_button_real_spin (spin_button, -vel_y / 20);
@@ -774,8 +774,8 @@ swipe_gesture_update (GtkGesture       *gesture,
 
 static gboolean
 scroll_controller_scroll (GtkEventControllerScroll *Scroll,
-                         gdouble                   dx,
-                         gdouble                   dy,
+                         double                    dx,
+                         double                    dy,
                          GtkWidget                *widget)
 {
   GtkSpinButton *spin = GTK_SPIN_BUTTON (widget);
@@ -812,7 +812,7 @@ gtk_spin_button_stop_spinning (GtkSpinButton *spin)
 static void
 start_spinning (GtkSpinButton *spin,
                 GtkWidget     *click_child,
-                gdouble        step)
+                double         step)
 {
   spin->click_child = click_child;
 
@@ -1147,7 +1147,7 @@ weed_out_neg_zero (char *str,
 
 static char *
 gtk_spin_button_format_for_value (GtkSpinButton *spin_button,
-                                  gdouble        value)
+                                  double         value)
 {
   char *buf = g_strdup_printf ("%0.*f", spin_button->digits, value);
 
@@ -1263,7 +1263,7 @@ static void
 gtk_spin_button_real_change_value (GtkSpinButton *spin,
                                    GtkScrollType  scroll)
 {
-  gdouble old_value;
+  double old_value;
 
   if (!gtk_editable_get_editable (GTK_EDITABLE (spin->entry)))
     {
@@ -1360,10 +1360,10 @@ gtk_spin_button_real_change_value (GtkSpinButton *spin,
 
 static void
 gtk_spin_button_snap (GtkSpinButton *spin_button,
-                      gdouble        val)
+                      double         val)
 {
-  gdouble inc;
-  gdouble tmp;
+  double inc;
+  double tmp;
 
   inc = gtk_adjustment_get_step_increment (spin_button->adjustment);
   if (inc == 0)
@@ -1491,10 +1491,10 @@ gtk_spin_button_insert_text (GtkEditable *editable,
 
 static void
 gtk_spin_button_real_spin (GtkSpinButton *spin_button,
-                           gdouble        increment)
+                           double         increment)
 {
   GtkAdjustment *adjustment;
-  gdouble new_value = 0.0;
+  double new_value = 0.0;
   gboolean wrapped = FALSE;
 
   adjustment = spin_button->adjustment;
@@ -1541,7 +1541,7 @@ gtk_spin_button_real_spin (GtkSpinButton *spin_button,
 
 static int
 gtk_spin_button_default_input (GtkSpinButton *spin_button,
-                               gdouble       *new_val)
+                               double        *new_val)
 {
   char *err = NULL;
   const char *text = gtk_editable_get_text (GTK_EDITABLE (spin_button->entry));
@@ -1586,7 +1586,7 @@ gtk_spin_button_default_output (GtkSpinButton *spin_button)
 void
 gtk_spin_button_configure (GtkSpinButton *spin_button,
                            GtkAdjustment *adjustment,
-                           gdouble        climb_rate,
+                           double         climb_rate,
                            guint          digits)
 {
   g_return_if_fail (GTK_IS_SPIN_BUTTON (spin_button));
@@ -1647,7 +1647,7 @@ gtk_spin_button_configure (GtkSpinButton *spin_button,
  */
 GtkWidget *
 gtk_spin_button_new (GtkAdjustment *adjustment,
-                     gdouble        climb_rate,
+                     double         climb_rate,
                      guint          digits)
 {
   GtkSpinButton *spin;
@@ -1681,9 +1681,9 @@ gtk_spin_button_new (GtkAdjustment *adjustment,
  * Returns: The new spin button as a #GtkWidget
  */
 GtkWidget *
-gtk_spin_button_new_with_range (gdouble min,
-                                gdouble max,
-                                gdouble step)
+gtk_spin_button_new_with_range (double min,
+                                double max,
+                                double step)
 {
   GtkAdjustment *adjustment;
   GtkSpinButton *spin;
@@ -1801,8 +1801,8 @@ gtk_spin_button_get_digits (GtkSpinButton *spin_button)
  **/
 void
 gtk_spin_button_set_increments (GtkSpinButton *spin_button,
-                                gdouble        step,
-                                gdouble        page)
+                                double         step,
+                                double         page)
 {
   g_return_if_fail (GTK_IS_SPIN_BUTTON (spin_button));
 
@@ -1826,8 +1826,8 @@ gtk_spin_button_set_increments (GtkSpinButton *spin_button,
  **/
 void
 gtk_spin_button_get_increments (GtkSpinButton *spin_button,
-                                gdouble       *step,
-                                gdouble       *page)
+                                double        *step,
+                                double        *page)
 {
   g_return_if_fail (GTK_IS_SPIN_BUTTON (spin_button));
 
@@ -1850,8 +1850,8 @@ gtk_spin_button_get_increments (GtkSpinButton *spin_button,
  */
 void
 gtk_spin_button_set_range (GtkSpinButton *spin_button,
-                           gdouble        min,
-                           gdouble        max)
+                           double         min,
+                           double         max)
 {
   GtkAdjustment *adjustment;
 
@@ -1879,8 +1879,8 @@ gtk_spin_button_set_range (GtkSpinButton *spin_button,
  */
 void
 gtk_spin_button_get_range (GtkSpinButton *spin_button,
-                           gdouble       *min,
-                           gdouble       *max)
+                           double        *min,
+                           double        *max)
 {
   g_return_if_fail (GTK_IS_SPIN_BUTTON (spin_button));
 
@@ -1898,7 +1898,7 @@ gtk_spin_button_get_range (GtkSpinButton *spin_button,
  *
  * Returns: the value of @spin_button
  */
-gdouble
+double
 gtk_spin_button_get_value (GtkSpinButton *spin_button)
 {
   g_return_val_if_fail (GTK_IS_SPIN_BUTTON (spin_button), 0.0);
@@ -1917,7 +1917,7 @@ gtk_spin_button_get_value (GtkSpinButton *spin_button)
 int
 gtk_spin_button_get_value_as_int (GtkSpinButton *spin_button)
 {
-  gdouble val;
+  double val;
 
   g_return_val_if_fail (GTK_IS_SPIN_BUTTON (spin_button), 0);
 
@@ -1937,7 +1937,7 @@ gtk_spin_button_get_value_as_int (GtkSpinButton *spin_button)
  */
 void
 gtk_spin_button_set_value (GtkSpinButton *spin_button,
-                           gdouble        value)
+                           double         value)
 {
   g_return_if_fail (GTK_IS_SPIN_BUTTON (spin_button));
 
@@ -2133,10 +2133,10 @@ gtk_spin_button_get_snap_to_ticks (GtkSpinButton *spin_button)
 void
 gtk_spin_button_spin (GtkSpinButton *spin_button,
                       GtkSpinType    direction,
-                      gdouble        increment)
+                      double         increment)
 {
   GtkAdjustment *adjustment;
-  gdouble diff;
+  double diff;
 
   g_return_if_fail (GTK_IS_SPIN_BUTTON (spin_button));
 
@@ -2208,7 +2208,7 @@ gtk_spin_button_spin (GtkSpinButton *spin_button,
 void
 gtk_spin_button_update (GtkSpinButton *spin_button)
 {
-  gdouble val;
+  double val;
   int error = 0;
   int return_val;
 
index 5e9b70caa5a9dc6a58c59a48e3a5dbf0e94b98b7..28fa0c149953ccaf1d66669d3b5c2432a1b8ae46 100644 (file)
@@ -101,18 +101,18 @@ GType             gtk_spin_button_get_type           (void) G_GNUC_CONST;
 GDK_AVAILABLE_IN_ALL
 void           gtk_spin_button_configure          (GtkSpinButton  *spin_button,
                                                    GtkAdjustment  *adjustment,
-                                                   gdouble         climb_rate,
+                                                   double          climb_rate,
                                                    guint           digits);
 
 GDK_AVAILABLE_IN_ALL
 GtkWidget*     gtk_spin_button_new                (GtkAdjustment  *adjustment,
-                                                   gdouble         climb_rate,
+                                                   double          climb_rate,
                                                    guint           digits);
 
 GDK_AVAILABLE_IN_ALL
-GtkWidget*     gtk_spin_button_new_with_range     (gdouble  min,
-                                                   gdouble  max,
-                                                   gdouble  step);
+GtkWidget*     gtk_spin_button_new_with_range     (double   min,
+                                                   double   max,
+                                                   double   step);
 
 GDK_AVAILABLE_IN_ALL
 void           gtk_spin_button_set_adjustment     (GtkSpinButton  *spin_button,
@@ -129,31 +129,31 @@ guint           gtk_spin_button_get_digits         (GtkSpinButton  *spin_button)
 
 GDK_AVAILABLE_IN_ALL
 void           gtk_spin_button_set_increments     (GtkSpinButton  *spin_button,
-                                                   gdouble         step,
-                                                   gdouble         page);
+                                                   double          step,
+                                                   double          page);
 GDK_AVAILABLE_IN_ALL
 void            gtk_spin_button_get_increments     (GtkSpinButton  *spin_button,
-                                                   gdouble        *step,
-                                                   gdouble        *page);
+                                                   double         *step,
+                                                   double         *page);
 
 GDK_AVAILABLE_IN_ALL
 void           gtk_spin_button_set_range          (GtkSpinButton  *spin_button,
-                                                   gdouble         min,
-                                                   gdouble         max);
+                                                   double          min,
+                                                   double          max);
 GDK_AVAILABLE_IN_ALL
 void            gtk_spin_button_get_range          (GtkSpinButton  *spin_button,
-                                                   gdouble        *min,
-                                                   gdouble        *max);
+                                                   double         *min,
+                                                   double         *max);
 
 GDK_AVAILABLE_IN_ALL
-gdouble                gtk_spin_button_get_value          (GtkSpinButton  *spin_button);
+double         gtk_spin_button_get_value          (GtkSpinButton  *spin_button);
 
 GDK_AVAILABLE_IN_ALL
 int            gtk_spin_button_get_value_as_int   (GtkSpinButton  *spin_button);
 
 GDK_AVAILABLE_IN_ALL
 void           gtk_spin_button_set_value          (GtkSpinButton  *spin_button,
-                                                   gdouble         value);
+                                                   double          value);
 
 GDK_AVAILABLE_IN_ALL
 void           gtk_spin_button_set_update_policy  (GtkSpinButton  *spin_button,
@@ -170,7 +170,7 @@ gboolean        gtk_spin_button_get_numeric        (GtkSpinButton  *spin_button)
 GDK_AVAILABLE_IN_ALL
 void           gtk_spin_button_spin               (GtkSpinButton  *spin_button,
                                                    GtkSpinType     direction,
-                                                   gdouble         increment);
+                                                   double          increment);
 
 GDK_AVAILABLE_IN_ALL
 void           gtk_spin_button_set_wrap           (GtkSpinButton  *spin_button,
index a789be258cc979eea8b637cd3df54b330781c1f0..98cdc4093ac54e8e382e6e34e15bec6c897d1acf 100644 (file)
@@ -2013,7 +2013,7 @@ gtk_stack_snapshot_crossfade (GtkWidget   *widget,
 {
   GtkStack *stack = GTK_STACK (widget);
   GtkStackPrivate *priv = gtk_stack_get_instance_private (stack);
-  gdouble progress = gtk_progress_tracker_get_progress (&priv->tracker, FALSE);
+  double progress = gtk_progress_tracker_get_progress (&priv->tracker, FALSE);
 
   gtk_snapshot_push_cross_fade (snapshot, progress);
 
@@ -2411,13 +2411,13 @@ gtk_stack_measure (GtkWidget      *widget,
     {
       if (orientation == GTK_ORIENTATION_VERTICAL && !priv->vhomogeneous)
         {
-          gdouble t = priv->interpolate_size ? gtk_progress_tracker_get_ease_out_cubic (&priv->tracker, FALSE) : 1.0;
+          double t = priv->interpolate_size ? gtk_progress_tracker_get_ease_out_cubic (&priv->tracker, FALSE) : 1.0;
           *minimum = LERP (*minimum, priv->last_visible_widget_height, t);
           *natural = LERP (*natural, priv->last_visible_widget_height, t);
         }
       if (orientation == GTK_ORIENTATION_HORIZONTAL && !priv->hhomogeneous)
         {
-          gdouble t = priv->interpolate_size ? gtk_progress_tracker_get_ease_out_cubic (&priv->tracker, FALSE) : 1.0;
+          double t = priv->interpolate_size ? gtk_progress_tracker_get_ease_out_cubic (&priv->tracker, FALSE) : 1.0;
           *minimum = LERP (*minimum, priv->last_visible_widget_width, t);
           *natural = LERP (*natural, priv->last_visible_widget_width, t);
         }
index b11a5b80286e46c89f184202524aeb0a11a988a7..f32e0d7c6e07b2f300485c37dc79f7d6b665dbf6 100644 (file)
@@ -978,9 +978,9 @@ _gtk_style_context_get_cursor_color (GtkStyleContext *context,
 static void
 draw_insertion_cursor (GtkStyleContext *context,
                        cairo_t         *cr,
-                       gdouble          x,
-                       gdouble          y,
-                       gdouble          height,
+                       double           x,
+                       double           y,
+                       double           height,
                        float            aspect_ratio,
                        gboolean         is_primary,
                        PangoDirection   direction,
@@ -1043,7 +1043,7 @@ draw_insertion_cursor (GtkStyleContext *context,
 }
 
 static void
-get_insertion_cursor_bounds (gdouble          height,
+get_insertion_cursor_bounds (double           height,
                              float            aspect_ratio,
                              PangoDirection   direction,
                              gboolean         draw_arrow,
@@ -1084,7 +1084,7 @@ get_insertion_cursor_bounds (gdouble          height,
 static void
 snapshot_insertion_cursor (GtkSnapshot     *snapshot,
                            GtkStyleContext *context,
-                           gdouble          height,
+                           double           height,
                            float            aspect_ratio,
                            gboolean         is_primary,
                            PangoDirection   direction,
@@ -1140,8 +1140,8 @@ snapshot_insertion_cursor (GtkSnapshot     *snapshot,
 void
 gtk_render_insertion_cursor (GtkStyleContext *context,
                              cairo_t         *cr,
-                             gdouble          x,
-                             gdouble          y,
+                             double           x,
+                             double           y,
                              PangoLayout     *layout,
                              int              index,
                              PangoDirection   direction)
@@ -1237,8 +1237,8 @@ gtk_render_insertion_cursor (GtkStyleContext *context,
 void
 gtk_snapshot_render_insertion_cursor (GtkSnapshot     *snapshot,
                                       GtkStyleContext *context,
-                                      gdouble          x,
-                                      gdouble          y,
+                                      double           x,
+                                      double           y,
                                       PangoLayout     *layout,
                                       int              index,
                                       PangoDirection   direction)
index 688f6fd1e02701699f2667589b9b6d9d95223514..bd4dde7646d239bfb05f94b36c00c374682fae02 100644 (file)
@@ -904,8 +904,8 @@ GDK_AVAILABLE_IN_ALL
 void        gtk_render_insertion_cursor
                                    (GtkStyleContext     *context,
                                     cairo_t             *cr,
-                                    gdouble              x,
-                                    gdouble              y,
+                                    double               x,
+                                    double               y,
                                     PangoLayout         *layout,
                                     int                  index,
                                     PangoDirection       direction);
index a6e8d88d93f753fb56e6f179c3a0ebbed4f9f04d..1c3bdd27c304ae6b7d37f5464b05be423ed3f86c 100644 (file)
@@ -196,8 +196,8 @@ gtk_switch_begin_toggle_animation (GtkSwitch *self)
 static void
 gtk_switch_click_gesture_pressed (GtkGestureClick *gesture,
                                   int              n_press,
-                                  gdouble          x,
-                                  gdouble          y,
+                                  double           x,
+                                  double           y,
                                   GtkSwitch       *self)
 {
   graphene_rect_t switch_bounds;
@@ -216,8 +216,8 @@ gtk_switch_click_gesture_pressed (GtkGestureClick *gesture,
 static void
 gtk_switch_click_gesture_released (GtkGestureClick *gesture,
                                    int              n_press,
-                                   gdouble          x,
-                                   gdouble          y,
+                                   double           x,
+                                   double           y,
                                    GtkSwitch       *self)
 {
   GdkEventSequence *sequence;
@@ -235,7 +235,7 @@ gtk_switch_click_gesture_released (GtkGestureClick *gesture,
 static void
 gtk_switch_pan_gesture_pan (GtkGesturePan   *gesture,
                             GtkPanDirection  direction,
-                            gdouble          offset,
+                            double           offset,
                             GtkSwitch       *self)
 {
   GtkWidget *widget = GTK_WIDGET (self);
@@ -261,8 +261,8 @@ gtk_switch_pan_gesture_pan (GtkGesturePan   *gesture,
 
 static void
 gtk_switch_pan_gesture_drag_end (GtkGestureDrag *gesture,
-                                 gdouble         x,
-                                 gdouble         y,
+                                 double          x,
+                                 double          y,
                                  GtkSwitch      *self)
 {
   GdkEventSequence *sequence;
index d087fed77bf88de544d3b7be0c1b2a7d90896436..e4f98f35682b57082fdb47081848f724e764b9c4 100644 (file)
@@ -152,7 +152,7 @@ struct _GtkTextAttributes
 
   PangoFontDescription *font;
 
-  gdouble font_scale;
+  double font_scale;
 
   int left_margin;
   int right_margin;
index 0b67be75531d2c79ccee135bbbb3fd42a3ae807b..9cdf94a75a22ba07264af350ac88c0739afe13d7 100644 (file)
@@ -334,8 +334,8 @@ gtk_text_handle_class_init (GtkTextHandleClass *klass)
 
 static void
 handle_drag_begin (GtkGestureDrag *gesture,
-                   gdouble         x,
-                   gdouble         y,
+                   double          x,
+                   double          y,
                    GtkTextHandle  *handle)
 {
   GtkWidget *widget;
@@ -360,12 +360,12 @@ handle_drag_begin (GtkGestureDrag *gesture,
 
 static void
 handle_drag_update (GtkGestureDrag *gesture,
-                    gdouble         offset_x,
-                    gdouble         offset_y,
+                    double          offset_x,
+                    double          offset_y,
                     GtkWidget      *widget)
 {
   GtkTextHandle *handle = GTK_TEXT_HANDLE (widget);
-  gdouble start_x, start_y;
+  double start_x, start_y;
   int x, y;
 
   gtk_gesture_drag_get_start_point (gesture, &start_x, &start_y);
@@ -388,8 +388,8 @@ handle_drag_update (GtkGestureDrag *gesture,
 
 static void
 handle_drag_end (GtkGestureDrag *gesture,
-                 gdouble         offset_x,
-                 gdouble         offset_y,
+                 double          offset_x,
+                 double          offset_y,
                  GtkTextHandle  *handle)
 {
   g_signal_emit (handle, signals[DRAG_FINISHED], 0);
index 645ffe5befff3d477c71065daf96fbb04368361d..f9d1ae8a2a342c592a8a07c5d551782cfd861d90 100644 (file)
@@ -291,10 +291,10 @@ struct _GtkTextViewPrivate
 struct _GtkTextPendingScroll
 {
   GtkTextMark   *mark;
-  gdouble        within_margin;
+  double         within_margin;
   gboolean       use_align;
-  gdouble        xalign;
-  gdouble        yalign;
+  double         xalign;
+  double         yalign;
 };
 
 typedef enum 
@@ -392,16 +392,16 @@ static void gtk_text_view_state_flags_changed  (GtkWidget        *widget,
 
 static void gtk_text_view_click_gesture_pressed (GtkGestureClick *gesture,
                                                       int                   n_press,
-                                                      gdouble               x,
-                                                      gdouble               y,
+                                                      double                x,
+                                                      double                y,
                                                       GtkTextView          *text_view);
 static void gtk_text_view_drag_gesture_update        (GtkGestureDrag *gesture,
-                                                      gdouble         offset_x,
-                                                      gdouble         offset_y,
+                                                      double          offset_x,
+                                                      double          offset_y,
                                                       GtkTextView    *text_view);
 static void gtk_text_view_drag_gesture_end           (GtkGestureDrag *gesture,
-                                                      gdouble         offset_x,
-                                                      gdouble         offset_y,
+                                                      double          offset_x,
+                                                      double          offset_y,
                                                       GtkTextView    *text_view);
 
 static gboolean gtk_text_view_key_controller_key_pressed  (GtkEventControllerKey *controller,
@@ -540,10 +540,10 @@ static void gtk_text_view_do_popup               (GtkTextView       *text_view,
 static void cancel_pending_scroll                (GtkTextView   *text_view);
 static void gtk_text_view_queue_scroll           (GtkTextView   *text_view,
                                                   GtkTextMark   *mark,
-                                                  gdouble        within_margin,
+                                                  double         within_margin,
                                                   gboolean       use_align,
-                                                  gdouble        xalign,
-                                                  gdouble        yalign);
+                                                  double         xalign,
+                                                  double         yalign);
 
 static gboolean gtk_text_view_flush_scroll         (GtkTextView *text_view);
 static void     gtk_text_view_update_adjustments   (GtkTextView *text_view);
@@ -674,7 +674,7 @@ get_buffer (GtkTextView *text_view)
 #define LOWER_OFFSET_ANCHOR 0.2
 
 static gboolean
-check_scroll (gdouble offset, GtkAdjustment *adjustment)
+check_scroll (double offset, GtkAdjustment *adjustment)
 {
   if ((offset > UPPER_OFFSET_ANCHOR &&
        gtk_adjustment_get_value (adjustment) + gtk_adjustment_get_page_size (adjustment) < gtk_adjustment_get_upper (adjustment)) ||
@@ -691,7 +691,7 @@ gtk_text_view_drop_motion_scroll_timeout (gpointer data)
   GtkTextView *text_view;
   GtkTextViewPrivate *priv;
   GtkTextIter newplace;
-  gdouble pointer_xoffset, pointer_yoffset;
+  double pointer_xoffset, pointer_yoffset;
 
   text_view = GTK_TEXT_VIEW (data);
   priv = text_view->priv;
@@ -703,8 +703,8 @@ gtk_text_view_drop_motion_scroll_timeout (gpointer data)
 
   gtk_text_buffer_move_mark (get_buffer (text_view), priv->dnd_mark, &newplace);
 
-  pointer_xoffset = (gdouble) priv->dnd_x / text_window_get_width (priv->text_window);
-  pointer_yoffset = (gdouble) priv->dnd_y / text_window_get_height (priv->text_window);
+  pointer_xoffset = (double) priv->dnd_x / text_window_get_width (priv->text_window);
+  pointer_yoffset = (double) priv->dnd_y / text_window_get_height (priv->text_window);
 
   if (check_scroll (pointer_xoffset, priv->hadjustment) ||
       check_scroll (pointer_yoffset, priv->vadjustment))
@@ -2392,10 +2392,10 @@ gtk_text_view_get_line_at_y (GtkTextView *text_view,
 static gboolean
 _gtk_text_view_scroll_to_iter (GtkTextView   *text_view,
                                GtkTextIter   *iter,
-                               gdouble        within_margin,
+                               double         within_margin,
                                gboolean       use_align,
-                               gdouble        xalign,
-                               gdouble        yalign,
+                               double         xalign,
+                               double         yalign,
                                gboolean       with_border)
 {
   GtkTextViewPrivate *priv = text_view->priv;
@@ -2628,10 +2628,10 @@ _gtk_text_view_scroll_to_iter (GtkTextView   *text_view,
 gboolean
 gtk_text_view_scroll_to_iter (GtkTextView   *text_view,
                               GtkTextIter   *iter,
-                              gdouble        within_margin,
+                              double         within_margin,
                               gboolean       use_align,
-                              gdouble        xalign,
-                              gdouble        yalign)
+                              double         xalign,
+                              double         yalign)
 {
   return _gtk_text_view_scroll_to_iter (text_view,
                                         iter,
@@ -2665,10 +2665,10 @@ cancel_pending_scroll (GtkTextView *text_view)
 static void
 gtk_text_view_queue_scroll (GtkTextView   *text_view,
                             GtkTextMark   *mark,
-                            gdouble        within_margin,
+                            double         within_margin,
                             gboolean       use_align,
-                            gdouble        xalign,
-                            gdouble        yalign)
+                            double         xalign,
+                            double         yalign)
 {
   GtkTextIter iter;
   GtkTextPendingScroll *scroll;
@@ -2881,10 +2881,10 @@ flush_update_im_spot_location (GtkTextView *text_view)
 void
 gtk_text_view_scroll_to_mark (GtkTextView *text_view,
                               GtkTextMark *mark,
-                              gdouble      within_margin,
+                              double       within_margin,
                               gboolean     use_align,
-                              gdouble      xalign,
-                              gdouble      yalign)
+                              double       xalign,
+                              double       yalign)
 {  
   g_return_if_fail (GTK_IS_TEXT_VIEW (text_view));
   g_return_if_fail (GTK_IS_TEXT_MARK (mark));
@@ -5340,7 +5340,7 @@ get_iter_from_gesture (GtkTextView *text_view,
   GdkEventSequence *sequence;
   GtkTextViewPrivate *priv;
   int xcoord, ycoord;
-  gdouble px, py;
+  double px, py;
 
   priv = text_view->priv;
   sequence =
@@ -5365,8 +5365,8 @@ get_iter_from_gesture (GtkTextView *text_view,
 static void
 gtk_text_view_click_gesture_pressed (GtkGestureClick *gesture,
                                      int              n_press,
-                                     gdouble          x,
-                                     gdouble          y,
+                                     double           x,
+                                     double           y,
                                      GtkTextView     *text_view)
 {
   GdkEventSequence *sequence;
@@ -6112,7 +6112,7 @@ gtk_text_view_move_cursor (GtkTextView     *text_view,
   if (!cursor_visible (text_view))
     {
       GtkScrollStep scroll_step;
-      gdouble old_xpos, old_ypos;
+      double old_xpos, old_ypos;
 
       switch (step) 
        {
@@ -6359,7 +6359,7 @@ gtk_text_view_move_viewport (GtkTextView     *text_view,
                              int              count)
 {
   GtkAdjustment *adjustment;
-  gdouble increment;
+  double increment;
   
   switch (step) 
     {
@@ -6423,8 +6423,8 @@ gtk_text_view_scroll_pages (GtkTextView *text_view,
   GtkTextIter old_insert;
   GtkTextIter new_insert;
   GtkTextIter anchor;
-  gdouble newval;
-  gdouble oldval;
+  double newval;
+  double oldval;
   int y0, y1;
 
   priv = text_view->priv;
@@ -6515,8 +6515,8 @@ gtk_text_view_scroll_hpages (GtkTextView *text_view,
   GtkTextMark *insert_mark;
   GtkTextIter old_insert;
   GtkTextIter new_insert;
-  gdouble newval;
-  gdouble oldval;
+  double newval;
+  double oldval;
   int y, height;
 
   priv = text_view->priv;
@@ -7187,7 +7187,7 @@ drag_gesture_get_text_surface_coords (GtkGestureDrag *gesture,
                                      int            *x,
                                      int            *y)
 {
-  gdouble sx, sy, ox, oy;
+  double sx, sy, ox, oy;
 
   if (!gtk_gesture_drag_get_start_point (gesture, &sx, &sy) ||
       !gtk_gesture_drag_get_offset (gesture, &ox, &oy))
@@ -7206,8 +7206,8 @@ drag_gesture_get_text_surface_coords (GtkGestureDrag *gesture,
 
 static void
 gtk_text_view_drag_gesture_update (GtkGestureDrag *gesture,
-                                   gdouble         offset_x,
-                                   gdouble         offset_y,
+                                   double          offset_x,
+                                   double          offset_y,
                                    GtkTextView    *text_view)
 {
   int start_x, start_y, x, y;
@@ -7324,8 +7324,8 @@ gtk_text_view_drag_gesture_update (GtkGestureDrag *gesture,
 
 static void
 gtk_text_view_drag_gesture_end (GtkGestureDrag *gesture,
-                                gdouble         offset_x,
-                                gdouble         offset_y,
+                                double          offset_x,
+                                double          offset_y,
                                 GtkTextView    *text_view)
 {
   gboolean is_touchscreen, clicked_in_selection;
@@ -7970,9 +7970,9 @@ gtk_text_view_set_hadjustment_values (GtkTextView *text_view)
 {
   GtkTextViewPrivate *priv;
   int screen_width;
-  gdouble old_value;
-  gdouble new_value;
-  gdouble new_upper;
+  double old_value;
+  double new_value;
+  double new_upper;
 
   priv = text_view->priv;
 
@@ -7983,7 +7983,7 @@ gtk_text_view_set_hadjustment_values (GtkTextView *text_view)
   g_object_set (priv->hadjustment,
                 "lower", 0.0,
                 "upper", new_upper,
-                "page-size", (gdouble)screen_width,
+                "page-size", (double)screen_width,
                 "step-increment", screen_width * 0.1,
                 "page-increment", screen_width * 0.9,
                 NULL);
@@ -8000,9 +8000,9 @@ gtk_text_view_set_vadjustment_values (GtkTextView *text_view)
   GtkTextIter first_para;
   int screen_height;
   int y;
-  gdouble old_value;
-  gdouble new_value;
-  gdouble new_upper;
+  double old_value;
+  double new_value;
+  double new_upper;
 
   priv = text_view->priv;
 
@@ -8013,7 +8013,7 @@ gtk_text_view_set_vadjustment_values (GtkTextView *text_view)
   g_object_set (priv->vadjustment,
                 "lower", 0.0,
                 "upper", new_upper,
-                "page-size", (gdouble)screen_height,
+                "page-size", (double)screen_height,
                 "step-increment", screen_height * 0.1,
                 "page-increment", screen_height * 0.9,
                 NULL);
index d16f17f2b5463c35214ecabcde6e98089d8278da..1d929f040b4f482a6f4bfc29f62070191241badc 100644 (file)
@@ -199,17 +199,17 @@ GtkTextBuffer *gtk_text_view_get_buffer            (GtkTextView   *text_view);
 GDK_AVAILABLE_IN_ALL
 gboolean       gtk_text_view_scroll_to_iter        (GtkTextView   *text_view,
                                                     GtkTextIter   *iter,
-                                                    gdouble        within_margin,
+                                                    double         within_margin,
                                                     gboolean       use_align,
-                                                    gdouble        xalign,
-                                                    gdouble        yalign);
+                                                    double         xalign,
+                                                    double         yalign);
 GDK_AVAILABLE_IN_ALL
 void           gtk_text_view_scroll_to_mark        (GtkTextView   *text_view,
                                                     GtkTextMark   *mark,
-                                                    gdouble        within_margin,
+                                                    double         within_margin,
                                                     gboolean       use_align,
-                                                    gdouble        xalign,
-                                                    gdouble        yalign);
+                                                    double         xalign,
+                                                    double         yalign);
 GDK_AVAILABLE_IN_ALL
 void           gtk_text_view_scroll_mark_onscreen  (GtkTextView   *text_view,
                                                     GtkTextMark   *mark);
index f7e851c6c7fc2098a4966d1947a889ced6ac16c3..6eb1472a5129a0d779cb248c9d5ea92c162b2351 100644 (file)
@@ -136,8 +136,8 @@ static void       gtk_tooltip_set_surface          (GtkTooltip      *tooltip,
 static void       gtk_tooltip_handle_event_internal (GdkEventType   event_type,
                                                      GdkSurface    *surface,
                                                      GtkWidget     *target_widget,
-                                                     gdouble       dx,
-                                                     gdouble       dy);
+                                                     double        dx,
+                                                     double        dy);
 
 static GQuark quark_current_tooltip;
 
index 078847239b4ce7968d02730b71b5d2c013c09b86..b5a479ad29a981d313adf89711878f9cdcb64153 100644 (file)
@@ -162,7 +162,7 @@ _gtk_tree_data_list_node_to_value (GtkTreeDataList *list,
       g_value_set_float (value, (float) list->data.v_float);
       break;
     case G_TYPE_DOUBLE:
-      g_value_set_double (value, (gdouble) list->data.v_double);
+      g_value_set_double (value, (double) list->data.v_double);
       break;
     case G_TYPE_STRING:
       g_value_set_string (value, (char *) list->data.v_pointer);
index 9207bce14aa42b7429dcd76da3ccd055e67e6711..676311786f16e24b898ffb2d4e4a98cac81c0541 100644 (file)
@@ -36,7 +36,7 @@ struct _GtkTreeDataList
     gint64        v_int64;
     guint64        v_uint64;
     float         v_float;
-    gdouble        v_double;
+    double         v_double;
     gpointer      v_pointer;
   } data;
 };
index 8b20bedd91d8b5047f033705df184ddeebbe9072..8d03b23af7479a5062629ccec29bdc787e134c74 100644 (file)
@@ -818,8 +818,8 @@ static void     gtk_tree_view_search_pressed_cb         (GtkGesture       *gestu
                                                          double            y,
                                                         GtkTreeView      *tree_view);
 static gboolean gtk_tree_view_search_scroll_event       (GtkWidget        *entry,
-                                                        gdouble           dx,
-                                                         gdouble           dy,
+                                                        double            dx,
+                                                         double            dy,
                                                         GtkTreeView      *tree_view);
 static gboolean gtk_tree_view_search_key_pressed        (GtkEventControllerKey *key,
                                                          guint                  keyval,
@@ -886,45 +886,45 @@ static void     grab_focus_and_unset_draw_keyfocus   (GtkTreeView *tree_view);
 /* Gestures */
 static void gtk_tree_view_column_click_gesture_pressed (GtkGestureClick *gesture,
                                                              int                   n_press,
-                                                             gdouble               x,
-                                                             gdouble               y,
+                                                             double                x,
+                                                             double                y,
                                                              GtkTreeView          *tree_view);
 
 static void gtk_tree_view_click_gesture_pressed        (GtkGestureClick *gesture,
                                                              int                   n_press,
-                                                             gdouble               x,
-                                                             gdouble               y,
+                                                             double                x,
+                                                             double                y,
                                                              GtkTreeView          *tree_view);
 static void gtk_tree_view_click_gesture_released       (GtkGestureClick *gesture,
                                                              int                   n_press,
-                                                             gdouble               x,
-                                                             gdouble               y,
+                                                             double                x,
+                                                             double                y,
                                                              GtkTreeView          *tree_view);
 
 static void gtk_tree_view_column_drag_gesture_begin         (GtkGestureDrag *gesture,
-                                                             gdouble         start_x,
-                                                             gdouble         start_y,
+                                                             double          start_x,
+                                                             double          start_y,
                                                              GtkTreeView    *tree_view);
 static void gtk_tree_view_column_drag_gesture_update        (GtkGestureDrag *gesture,
-                                                             gdouble         offset_x,
-                                                             gdouble         offset_y,
+                                                             double          offset_x,
+                                                             double          offset_y,
                                                              GtkTreeView    *tree_view);
 static void gtk_tree_view_column_drag_gesture_end           (GtkGestureDrag *gesture,
-                                                             gdouble         offset_x,
-                                                             gdouble         offset_y,
+                                                             double          offset_x,
+                                                             double          offset_y,
                                                              GtkTreeView    *tree_view);
 
 static void gtk_tree_view_drag_gesture_begin                (GtkGestureDrag *gesture,
-                                                             gdouble         start_x,
-                                                             gdouble         start_y,
+                                                             double          start_x,
+                                                             double          start_y,
                                                              GtkTreeView    *tree_view);
 static void gtk_tree_view_drag_gesture_update               (GtkGestureDrag *gesture,
-                                                             gdouble         offset_x,
-                                                             gdouble         offset_y,
+                                                             double          offset_x,
+                                                             double          offset_y,
                                                              GtkTreeView    *tree_view);
 static void gtk_tree_view_drag_gesture_end                  (GtkGestureDrag *gesture,
-                                                             gdouble         offset_x,
-                                                             gdouble         offset_y,
+                                                             double          offset_x,
+                                                             double          offset_y,
                                                              GtkTreeView    *tree_view);
 static void gtk_tree_view_motion_controller_enter           (GtkEventControllerMotion *controller,
                                                              double                    x,
@@ -3012,8 +3012,8 @@ gtk_tree_view_click_gesture_pressed (GtkGestureClick *gesture,
 
 static void
 gtk_tree_view_drag_gesture_begin (GtkGestureDrag *gesture,
-                                  gdouble         start_x,
-                                  gdouble         start_y,
+                                  double          start_x,
+                                  double          start_y,
                                   GtkTreeView    *tree_view)
 {
   GtkTreeViewPrivate *priv = gtk_tree_view_get_instance_private (tree_view);
@@ -3053,8 +3053,8 @@ gtk_tree_view_drag_gesture_begin (GtkGestureDrag *gesture,
 static void
 gtk_tree_view_column_click_gesture_pressed (GtkGestureClick *gesture,
                                             int              n_press,
-                                            gdouble          x,
-                                            gdouble          y,
+                                            double           x,
+                                            double           y,
                                             GtkTreeView     *tree_view)
 {
   GtkTreeViewPrivate *priv = gtk_tree_view_get_instance_private (tree_view);
@@ -3086,8 +3086,8 @@ gtk_tree_view_column_click_gesture_pressed (GtkGestureClick *gesture,
 
 static void
 gtk_tree_view_column_drag_gesture_begin (GtkGestureDrag *gesture,
-                                         gdouble         start_x,
-                                         gdouble         start_y,
+                                         double          start_x,
+                                         double          start_y,
                                          GtkTreeView    *tree_view)
 {
   GtkTreeViewPrivate *priv = gtk_tree_view_get_instance_private (tree_view);
@@ -3227,8 +3227,8 @@ gtk_tree_view_button_release_column_resize (GtkTreeView *tree_view)
 
 static void
 gtk_tree_view_column_drag_gesture_end (GtkGestureDrag *gesture,
-                                       gdouble         offset_x,
-                                       gdouble         offset_y,
+                                       double          offset_x,
+                                       double          offset_y,
                                        GtkTreeView    *tree_view)
 {
   GtkTreeViewPrivate *priv = gtk_tree_view_get_instance_private (tree_view);
@@ -3248,8 +3248,8 @@ gtk_tree_view_column_drag_gesture_end (GtkGestureDrag *gesture,
 
 static void
 gtk_tree_view_drag_gesture_end (GtkGestureDrag *gesture,
-                                gdouble         offset_x,
-                                gdouble         offset_y,
+                                double          offset_x,
+                                double          offset_y,
                                 GtkTreeView    *tree_view)
 {
   gtk_tree_view_stop_rubber_band (tree_view);
@@ -3258,8 +3258,8 @@ gtk_tree_view_drag_gesture_end (GtkGestureDrag *gesture,
 static void
 gtk_tree_view_click_gesture_released (GtkGestureClick *gesture,
                                       int              n_press,
-                                      gdouble          x,
-                                      gdouble          y,
+                                      double           x,
+                                      double           y,
                                       GtkTreeView     *tree_view)
 {
   GtkTreeViewPrivate *priv = gtk_tree_view_get_instance_private (tree_view);
@@ -3550,8 +3550,8 @@ update_prelight (GtkTreeView *tree_view,
 
 static gboolean
 gtk_tree_view_motion_resize_column (GtkTreeView *tree_view,
-                                    gdouble      x,
-                                    gdouble      y)
+                                    double       x,
+                                    double       y)
 {
   GtkTreeViewPrivate *priv = gtk_tree_view_get_instance_private (tree_view);
   int new_width;
@@ -3577,7 +3577,7 @@ gtk_tree_view_update_current_reorder (GtkTreeView *tree_view)
   GtkTreeViewColumnReorder *reorder = NULL;
   GdkEventSequence *sequence;
   GList *list;
-  gdouble x;
+  double x;
 
   sequence = gtk_gesture_single_get_current_sequence
     (GTK_GESTURE_SINGLE (priv->column_drag_gesture));
@@ -3607,7 +3607,7 @@ gtk_tree_view_vertical_autoscroll (GtkTreeView *tree_view)
   if (gtk_gesture_is_recognized (priv->drag_gesture))
     {
       GdkEventSequence *sequence;
-      gdouble py;
+      double py;
 
       sequence = gtk_gesture_single_get_current_sequence (GTK_GESTURE_SINGLE (priv->drag_gesture));
       gtk_gesture_get_point (priv->drag_gesture, sequence, NULL, &py);
@@ -3642,7 +3642,7 @@ gtk_tree_view_horizontal_autoscroll (GtkTreeView *tree_view)
   GtkTreeViewPrivate *priv = gtk_tree_view_get_instance_private (tree_view);
   GdkEventSequence *sequence;
   GdkRectangle visible_rect;
-  gdouble x;
+  double x;
   int offset;
 
   sequence = gtk_gesture_single_get_current_sequence
@@ -3669,8 +3669,8 @@ gtk_tree_view_horizontal_autoscroll (GtkTreeView *tree_view)
 
 static void
 gtk_tree_view_motion_drag_column (GtkTreeView *tree_view,
-                                  gdouble      x,
-                                  gdouble      y)
+                                  double       x,
+                                  double       y)
 {
   GtkTreeViewPrivate *priv = gtk_tree_view_get_instance_private (tree_view);
   GtkTreeViewColumn *column = priv->drag_column;
@@ -3849,7 +3849,7 @@ gtk_tree_view_update_rubber_band_selection (GtkTreeView *tree_view)
   GtkTreeViewPrivate *priv = gtk_tree_view_get_instance_private (tree_view);
   GtkTreeRBTree *start_tree, *end_tree;
   GtkTreeRBNode *start_node, *end_node;
-  gdouble start_y, offset_y;
+  double start_y, offset_y;
   int bin_y;
 
   if (!gtk_gesture_is_active (priv->drag_gesture))
@@ -3986,7 +3986,7 @@ static void
 gtk_tree_view_update_rubber_band (GtkTreeView *tree_view)
 {
   GtkTreeViewPrivate *priv = gtk_tree_view_get_instance_private (tree_view);
-  gdouble start_x, start_y, offset_x, offset_y, x, y;
+  double start_x, start_y, offset_x, offset_y, x, y;
   int bin_x, bin_y;
 
   if (!gtk_gesture_is_recognized (priv->drag_gesture))
@@ -4016,7 +4016,7 @@ gtk_tree_view_snapshot_rubber_band (GtkTreeView *tree_view,
                                     GtkSnapshot *snapshot)
 {
   GtkTreeViewPrivate *priv = gtk_tree_view_get_instance_private (tree_view);
-  gdouble start_x, start_y, offset_x, offset_y;
+  double start_x, start_y, offset_x, offset_y;
   GdkRectangle rect;
   GtkStyleContext *context;
   int bin_x, bin_y;
@@ -4054,12 +4054,12 @@ gtk_tree_view_snapshot_rubber_band (GtkTreeView *tree_view,
 
 static void
 gtk_tree_view_column_drag_gesture_update (GtkGestureDrag *gesture,
-                                          gdouble         offset_x,
-                                          gdouble         offset_y,
+                                          double          offset_x,
+                                          double          offset_y,
                                           GtkTreeView    *tree_view)
 {
   GtkTreeViewPrivate *priv = gtk_tree_view_get_instance_private (tree_view);
-  gdouble start_x, start_y, x, y;
+  double start_x, start_y, x, y;
   GdkEventSequence *sequence;
 
   sequence = gtk_gesture_single_get_current_sequence (GTK_GESTURE_SINGLE (gesture));
@@ -4079,8 +4079,8 @@ gtk_tree_view_column_drag_gesture_update (GtkGestureDrag *gesture,
 
 static void
 gtk_tree_view_drag_gesture_update (GtkGestureDrag *gesture,
-                                   gdouble         offset_x,
-                                   gdouble         offset_y,
+                                   double          offset_x,
+                                   double          offset_y,
                                    GtkTreeView    *tree_view)
 {
   GtkTreeViewPrivate *priv = gtk_tree_view_get_instance_private (tree_view);
@@ -5537,7 +5537,7 @@ get_separator_height (GtkTreeView *tree_view)
 {
   GtkStyleContext *context;
   GtkCssStyle *style;
-  gdouble d;
+  double d;
   int min_size;
 
   context = gtk_widget_get_style_context (GTK_WIDGET (tree_view));
@@ -6554,7 +6554,7 @@ gtk_tree_view_top_row_to_dy (GtkTreeView *tree_view)
   new_dy = MAX (0, new_dy);
 
   priv->in_top_row_to_dy = TRUE;
-  gtk_adjustment_set_value (priv->vadjustment, (gdouble)new_dy);
+  gtk_adjustment_set_value (priv->vadjustment, (double)new_dy);
   priv->in_top_row_to_dy = FALSE;
 }
 
@@ -7017,7 +7017,7 @@ gtk_tree_view_maybe_begin_dragging_row (GtkTreeView *tree_view)
 {
   GtkTreeViewPrivate *priv = gtk_tree_view_get_instance_private (tree_view);
   GtkWidget *widget = GTK_WIDGET (tree_view);
-  gdouble start_x, start_y, offset_x, offset_y;
+  double start_x, start_y, offset_x, offset_y;
   TreeViewDragInfo *di;
   GtkTreePath *path = NULL;
   int button;
@@ -13130,8 +13130,8 @@ gtk_tree_view_get_dest_row_at_pos (GtkTreeView             *tree_view,
   GtkTreeViewPrivate *priv = gtk_tree_view_get_instance_private (tree_view);
   int cell_y;
   int bin_x, bin_y;
-  gdouble offset_into_row;
-  gdouble fourth;
+  double offset_into_row;
+  double fourth;
   GdkRectangle cell;
   GtkTreeViewColumn *column = NULL;
   GtkTreePath *tmp_path = NULL;
@@ -13720,8 +13720,8 @@ gtk_tree_view_search_pressed_cb (GtkGesture  *gesture,
 
 static gboolean
 gtk_tree_view_search_scroll_event (GtkWidget   *widget,
-                                   gdouble      dx,
-                                   gdouble      dy,
+                                   double       dx,
+                                   double       dy,
                                   GtkTreeView *tree_view)
 {
   GtkTreeViewPrivate *priv = gtk_tree_view_get_instance_private (tree_view);
index ad81ebb94648aabae0504637b458a77a80343a79..b1bc4d8ebabe17ecafc73f96d4a10e946004dc8c 100644 (file)
@@ -91,12 +91,12 @@ static void gtk_tree_view_column_update_button                 (GtkTreeViewColum
 
 /* Button signal handlers */
 static void column_button_drag_begin  (GtkGestureDrag    *gesture,
-                                       gdouble            x,
-                                       gdouble            y,
+                                       double             x,
+                                       double             y,
                                        GtkTreeViewColumn *column);
 static void column_button_drag_update (GtkGestureDrag    *gesture,
-                                       gdouble            offset_x,
-                                       gdouble            offset_y,
+                                       double             offset_x,
+                                       double             offset_y,
                                        GtkTreeViewColumn *column);
 
 static void gtk_tree_view_column_button_clicked                (GtkWidget               *widget,
@@ -1045,8 +1045,8 @@ gtk_tree_view_column_update_button (GtkTreeViewColumn *tree_column)
 
 static void
 column_button_drag_begin (GtkGestureDrag    *gesture,
-                          gdouble            x,
-                          gdouble            y,
+                          double             x,
+                          double             y,
                           GtkTreeViewColumn *column)
 {
   GtkTreeViewColumnPrivate *priv = column->priv;
@@ -1065,8 +1065,8 @@ column_button_drag_begin (GtkGestureDrag    *gesture,
 
 static void
 column_button_drag_update (GtkGestureDrag    *gesture,
-                           gdouble            offset_x,
-                           gdouble            offset_y,
+                           double             offset_x,
+                           double             offset_y,
                            GtkTreeViewColumn *column)
 {
   GtkTreeViewColumnPrivate *priv = column->priv;
index 890a24f373d35be689138a78ea706f470f069cdd..6e7097ec1f00534e7234c7c9ad9eb9623f027fdc 100644 (file)
@@ -163,7 +163,7 @@ viewport_set_adjustment_values (GtkViewport    *viewport,
   GtkScrollablePolicy scroll_policy;
   GtkScrollablePolicy other_scroll_policy;
   GtkOrientation other_orientation;
-  gdouble upper, value;
+  double upper, value;
   int viewport_size, other_viewport_size;
   int view_width, view_height;
 
@@ -223,7 +223,7 @@ viewport_set_adjustment_values (GtkViewport    *viewport,
   if (orientation == GTK_ORIENTATION_HORIZONTAL &&
       _gtk_widget_get_direction (GTK_WIDGET (viewport)) == GTK_TEXT_DIR_RTL)
     {
-      gdouble dist = gtk_adjustment_get_upper (adjustment)
+      double dist = gtk_adjustment_get_upper (adjustment)
                      - value
                      - gtk_adjustment_get_page_size (adjustment);
       value = upper - dist - viewport_size;
index 431a1d28202e8e9530c369139510b0d972e23fdf..c9145749b9324670f84e5e849a868532cc13d6a6 100644 (file)
@@ -85,7 +85,7 @@ static gboolean cb_query_tooltip (GtkWidget       *button,
                                   GtkTooltip      *tooltip,
                                   gpointer         user_data);
 static void     cb_value_changed (GtkVolumeButton *button,
-                                  gdouble          value,
+                                  double           value,
                                   gpointer         user_data);
 
 G_DEFINE_TYPE (GtkVolumeButton, gtk_volume_button, GTK_TYPE_SCALE_BUTTON)
@@ -222,7 +222,7 @@ cb_query_tooltip (GtkWidget  *button,
 {
   GtkScaleButton *scale_button = GTK_SCALE_BUTTON (button);
   GtkAdjustment *adjustment;
-  gdouble val;
+  double val;
   char *str;
 
   adjustment = gtk_scale_button_get_adjustment (scale_button);
@@ -257,7 +257,7 @@ cb_query_tooltip (GtkWidget  *button,
 }
 
 static void
-cb_value_changed (GtkVolumeButton *button, gdouble value, gpointer user_data)
+cb_value_changed (GtkVolumeButton *button, double value, gpointer user_data)
 {
   gtk_widget_trigger_tooltip_query (GTK_WIDGET (button));
 }
index 70158b101b7f02fa401080a6e4d4b4527b1f9688..7a9cb2b478f0cf2f8bb6bd8f319c8628774b680f 100644 (file)
@@ -797,8 +797,8 @@ gtk_widget_real_snapshot (GtkWidget   *widget,
 
 static gboolean
 gtk_widget_real_contains (GtkWidget *widget,
-                          gdouble    x,
-                          gdouble    y)
+                          double     x,
+                          double     y)
 {
   GtkCssBoxes boxes;
 
@@ -1887,7 +1887,7 @@ _gtk_widget_emulate_press (GtkWidget      *widget,
 {
   GtkWidget *next_child, *parent;
   GdkEvent *press;
-  gdouble x, y;
+  double x, y;
   graphene_point_t p;
 
   if (event_widget == widget)
@@ -9735,8 +9735,8 @@ gtk_widget_get_allocation (GtkWidget     *widget,
  **/
 gboolean
 gtk_widget_contains (GtkWidget  *widget,
-                     gdouble     x,
-                     gdouble     y)
+                     double      x,
+                     double      y)
 {
   g_return_val_if_fail (GTK_IS_WIDGET (widget), FALSE);
 
@@ -9767,8 +9767,8 @@ gtk_widget_can_be_picked (GtkWidget    *widget,
 
 static GtkWidget *
 gtk_widget_do_pick (GtkWidget    *widget,
-                    gdouble       x,
-                    gdouble       y,
+                    double        x,
+                    double        y,
                     GtkPickFlags  flags)
 {
   GtkWidgetPrivate *priv = gtk_widget_get_instance_private (widget);
@@ -9874,8 +9874,8 @@ gtk_widget_do_pick (GtkWidget    *widget,
  **/
 GtkWidget *
 gtk_widget_pick (GtkWidget    *widget,
-                 gdouble       x,
-                 gdouble       y,
+                 double        x,
+                 double        y,
                  GtkPickFlags  flags)
 {
   g_return_val_if_fail (GTK_IS_WIDGET (widget), NULL);
@@ -10101,7 +10101,7 @@ gtk_widget_get_allocated_baseline (GtkWidget *widget)
  **/
 void
 gtk_widget_set_opacity (GtkWidget *widget,
-                        gdouble    opacity)
+                        double     opacity)
 {
   GtkWidgetPrivate *priv = gtk_widget_get_instance_private (widget);
   guint8 alpha;
@@ -10131,7 +10131,7 @@ gtk_widget_set_opacity (GtkWidget *widget,
  *
  * Returns: the requested opacity for this widget.
  **/
-gdouble
+double
 gtk_widget_get_opacity (GtkWidget *widget)
 {
   GtkWidgetPrivate *priv = gtk_widget_get_instance_private (widget);
index ead4b6b4297f0a1614bfc0b6d797ade2d5cfddf7..771e584ab4b6b269b9a8368ce8f74fb581b46824 100644 (file)
@@ -275,8 +275,8 @@ struct _GtkWidgetClass
                                                 GtkSnapshot          *snapshot);
 
   gboolean     (* contains)                    (GtkWidget *widget,
-                                                gdouble    x,
-                                                gdouble    y);
+                                                double     x,
+                                                double     y);
 
   /*< private >*/
 
@@ -644,12 +644,12 @@ gboolean     gtk_widget_translate_coordinates (GtkWidget  *src_widget,
 
 GDK_AVAILABLE_IN_ALL
 gboolean     gtk_widget_contains              (GtkWidget  *widget,
-                                               gdouble     x,
-                                               gdouble     y);
+                                               double      x,
+                                               double      y);
 GDK_AVAILABLE_IN_ALL
 GtkWidget *  gtk_widget_pick                  (GtkWidget   *widget,
-                                               gdouble      x,
-                                               gdouble      y,
+                                               double       x,
+                                               double       y,
                                                GtkPickFlags flags);
 
 GDK_AVAILABLE_IN_ALL
index 41f06bbcc0e12090ccf4083afa0295a6b06f3b8c..274b6d7ab9480fb1614000ce2953aa7f5f046488 100644 (file)
@@ -1322,8 +1322,8 @@ get_edge_for_coordinates (GtkWindow *window,
 static void
 click_gesture_pressed_cb (GtkGestureClick *gesture,
                           int              n_press,
-                          gdouble          x,
-                          gdouble          y,
+                          double           x,
+                          double           y,
                           GtkWindow       *window)
 {
   GtkWindowPrivate *priv = gtk_window_get_instance_private (window);
@@ -6903,8 +6903,8 @@ gtk_window_update_pointer_focus (GtkWindow        *window,
                                  GdkDevice        *device,
                                  GdkEventSequence *sequence,
                                  GtkWidget        *target,
-                                 gdouble           x,
-                                 gdouble           y)
+                                 double            x,
+                                 double            y)
 {
   GtkWindowPrivate *priv = gtk_window_get_instance_private (window);
   GtkPointerFocus *focus;
index 4cb31c3eed3c23fae744249d58d2c076425cdda7..a9546272eccb0304df4408e371951d25f6e7786b 100644 (file)
@@ -104,8 +104,8 @@ void             gtk_window_update_pointer_focus (GtkWindow        *window,
                                                   GdkDevice        *device,
                                                   GdkEventSequence *sequence,
                                                   GtkWidget        *target,
-                                                  gdouble           x,
-                                                  gdouble           y);
+                                                  double            x,
+                                                  double            y);
 void             gtk_window_set_pointer_focus_grab (GtkWindow        *window,
                                                     GdkDevice        *device,
                                                     GdkEventSequence *sequence,
index b0f54280fb40ed3841f8f93d7bb33de55c64432c..008b3e1ac7c82bdef5f8491d96b5e8b56a6dc220 100644 (file)
@@ -204,7 +204,7 @@ get_font_scale (GtkInspectorVisual *vis)
 
 static void
 update_font_scale (GtkInspectorVisual *vis,
-                   gdouble             factor,
+                   double              factor,
                    gboolean            update_adjustment,
                    gboolean            update_entry)
 {
@@ -228,7 +228,7 @@ static void
 font_scale_adjustment_changed (GtkAdjustment      *adjustment,
                                GtkInspectorVisual *vis)
 {
-  gdouble factor;
+  double factor;
 
   factor = gtk_adjustment_get_value (adjustment);
   update_font_scale (vis, factor, FALSE, TRUE);
@@ -238,7 +238,7 @@ static void
 font_scale_entry_activated (GtkEntry           *entry,
                             GtkInspectorVisual *vis)
 {
-  gdouble factor;
+  double factor;
   char *err = NULL;
 
   factor = g_strtod (gtk_editable_get_text (GTK_EDITABLE (entry)), &err);
@@ -772,7 +772,7 @@ init_cursor_size (GtkInspectorVisual *vis)
   if (size == 0)
     size = 32;
 
-  gtk_adjustment_set_value (vis->scale_adjustment, (gdouble)size);
+  gtk_adjustment_set_value (vis->scale_adjustment, (double)size);
   g_signal_connect (vis->cursor_size_adjustment, "value-changed",
                     G_CALLBACK (cursor_size_changed), vis);
 }
@@ -816,7 +816,7 @@ init_scale (GtkInspectorVisual *vis)
 #if defined (GDK_WINDOWING_X11)
   if (GDK_IS_X11_DISPLAY (vis->display))
     {
-      gdouble scale;
+      double scale;
 
       scale = gdk_monitor_get_scale_factor (gdk_x11_display_get_primary_monitor (vis->display));
       gtk_adjustment_set_value (vis->scale_adjustment, scale);
@@ -845,7 +845,7 @@ init_animation (GtkInspectorVisual *vis)
 
 static void
 update_slowdown (GtkInspectorVisual *vis,
-                 gdouble slowdown,
+                 double slowdown,
                  gboolean update_adjustment,
                  gboolean update_entry)
 {
@@ -868,8 +868,8 @@ static void
 slowdown_adjustment_changed (GtkAdjustment *adjustment,
                              GtkInspectorVisual *vis)
 {
-  gdouble value = gtk_adjustment_get_value (adjustment);
-  gdouble previous = CLAMP (log2 (_gtk_get_slowdown ()),
+  double value = gtk_adjustment_get_value (adjustment);
+  double previous = CLAMP (log2 (_gtk_get_slowdown ()),
                             gtk_adjustment_get_lower (adjustment),
                             gtk_adjustment_get_upper (adjustment));
 
@@ -881,7 +881,7 @@ static void
 slowdown_entry_activated (GtkEntry *entry,
                           GtkInspectorVisual *vis)
 {
-  gdouble slowdown;
+  double slowdown;
   char *err = NULL;
 
   slowdown = g_strtod (gtk_editable_get_text (GTK_EDITABLE (entry)), &err);
index 4912f7962fa987c0d1e416cc2c4e4aecaff258ed..d1a627c37b3485351205d16b0061340b73bd0b64 100644 (file)
@@ -76,7 +76,7 @@ size_prepared_cb (GdkPixbufLoader *loader,
                   int              height,
                   gpointer         data)
 {
-  gdouble *scale = data;
+  double *scale = data;
 
   width = MAX (*scale * width, 1);
   height = MAX (*scale * height, 1);
@@ -91,7 +91,7 @@ size_prepared_cb (GdkPixbufLoader *loader,
 GdkPixbuf *
 _gdk_pixbuf_new_from_stream_scaled (GInputStream  *stream,
                                     const char    *format,
-                                    gdouble        scale,
+                                    double         scale,
                                     GCancellable  *cancellable,
                                     GError       **error)
 {
index a78bbe6d73b9445f74dd88066b80296a369d0481..f99bcca2bee43de422e9b1b9bbbc7b0e2246604c 100644 (file)
@@ -94,8 +94,8 @@ static void                 gtk_print_backend_cloudprint_print_stream    (GtkPri
                                                                          GDestroyNotify          dnotify);
 static cairo_surface_t *    cloudprint_printer_create_cairo_surface      (GtkPrinter       *printer,
                                                                          GtkPrintSettings *settings,
-                                                                         gdouble          width,
-                                                                         gdouble          height,
+                                                                         double           width,
+                                                                         double           height,
                                                                          GIOChannel       *cache_io);
 static void                 cloudprint_printer_request_details           (GtkPrinter *printer);
 TGOAAccount *        t_goa_account_copy                 (TGOAAccount *account);
@@ -235,8 +235,8 @@ _cairo_write (void                *closure,
 static cairo_surface_t *
 cloudprint_printer_create_cairo_surface (GtkPrinter       *printer,
                                   GtkPrintSettings *settings,
-                                  gdouble           width,
-                                  gdouble           height,
+                                  double            width,
+                                  double            height,
                                   GIOChannel       *cache_io)
 {
   cairo_surface_t *surface;
@@ -942,7 +942,7 @@ cloudprint_printer_prepare_for_print (GtkPrinter       *printer,
                                      GtkPrintSettings *settings,
                                      GtkPageSetup     *page_setup)
 {
-  gdouble scale;
+  double scale;
 
   gtk_print_job_set_pages (print_job, gtk_print_settings_get_print_pages (settings));
   gtk_print_job_set_page_ranges (print_job, NULL, 0);
index 940b57f39341efdb6e6c1e0f864b7452ecdb8f19..6453e824d93893f39fa832f34d9aa05b7f78a916 100644 (file)
@@ -185,16 +185,16 @@ static void                 cups_printer_request_details           (GtkPrinter
 static gboolean             cups_request_default_printer           (GtkPrintBackendCups               *print_backend);
 static gboolean             cups_request_ppd                       (GtkPrinter                        *printer);
 static gboolean             cups_printer_get_hard_margins          (GtkPrinter                        *printer,
-                                                                   gdouble                           *top,
-                                                                   gdouble                           *bottom,
-                                                                   gdouble                           *left,
-                                                                   gdouble                           *right);
+                                                                   double                            *top,
+                                                                   double                            *bottom,
+                                                                   double                            *left,
+                                                                   double                            *right);
 static gboolean             cups_printer_get_hard_margins_for_paper_size (GtkPrinter                  *printer,
                                                                          GtkPaperSize                *paper_size,
-                                                                         gdouble                     *top,
-                                                                         gdouble                     *bottom,
-                                                                         gdouble                     *left,
-                                                                         gdouble                     *right);
+                                                                         double                      *top,
+                                                                         double                      *bottom,
+                                                                         double                      *left,
+                                                                         double                      *right);
 static GtkPrintCapabilities cups_printer_get_capabilities          (GtkPrinter                        *printer);
 static void                 set_option_from_settings               (GtkPrinterOption                  *option,
                                                                    GtkPrintSettings                  *setting);
@@ -210,8 +210,8 @@ static void                 gtk_print_backend_cups_print_stream    (GtkPrintBack
                                                                    GDestroyNotify                     dnotify);
 static cairo_surface_t *    cups_printer_create_cairo_surface      (GtkPrinter                        *printer,
                                                                    GtkPrintSettings                  *settings,
-                                                                   gdouble                            width,
-                                                                   gdouble                            height,
+                                                                   double                             width,
+                                                                   double                             height,
                                                                    GIOChannel                        *cache_io);
 
 static void                 gtk_print_backend_cups_set_password    (GtkPrintBackend                   *backend,
@@ -381,8 +381,8 @@ _cairo_write_to_cups (void                *closure,
 static cairo_surface_t *
 cups_printer_create_cairo_surface (GtkPrinter       *printer,
                                   GtkPrintSettings *settings,
-                                  gdouble           width,
-                                  gdouble           height,
+                                  double            width,
+                                  double            height,
                                   GIOChannel       *cache_io)
 {
   cairo_surface_t *surface;
@@ -6763,10 +6763,10 @@ cups_printer_get_default_page_size (GtkPrinter *printer)
 
 static gboolean
 cups_printer_get_hard_margins (GtkPrinter *printer,
-                              gdouble    *top,
-                              gdouble    *bottom,
-                              gdouble    *left,
-                              gdouble    *right)
+                              double     *top,
+                              double     *bottom,
+                              double     *left,
+                              double     *right)
 {
   GtkPrinterCups *cups_printer = GTK_PRINTER_CUPS (printer);
   ppd_file_t     *ppd_file;
@@ -6796,10 +6796,10 @@ cups_printer_get_hard_margins (GtkPrinter *printer,
 static gboolean
 cups_printer_get_hard_margins_for_paper_size (GtkPrinter   *printer,
                                              GtkPaperSize *paper_size,
-                                             gdouble      *top,
-                                             gdouble      *bottom,
-                                             gdouble      *left,
-                                             gdouble      *right)
+                                             double       *top,
+                                             double       *bottom,
+                                             double       *left,
+                                             double       *right)
 {
   ppd_file_t *ppd_file;
   ppd_size_t *size;
index 4e0691702e95cf48262b6868bee98c0f3083575f..cb935378845b67c7e649f15a5fcc1156ec276259 100644 (file)
@@ -93,8 +93,8 @@ static void                 gtk_print_backend_file_print_stream    (GtkPrintBack
                                                                    GDestroyNotify           dnotify);
 static cairo_surface_t *    file_printer_create_cairo_surface      (GtkPrinter              *printer,
                                                                    GtkPrintSettings        *settings,
-                                                                   gdouble                  width,
-                                                                   gdouble                  height,
+                                                                   double                   width,
+                                                                   double                   height,
                                                                    GIOChannel              *cache_io);
 
 static GList *              file_printer_list_papers               (GtkPrinter              *printer);
@@ -318,8 +318,8 @@ _cairo_write (void                *closure,
 static cairo_surface_t *
 file_printer_create_cairo_surface (GtkPrinter       *printer,
                                   GtkPrintSettings *settings,
-                                  gdouble           width, 
-                                  gdouble           height,
+                                  double            width, 
+                                  double            height,
                                   GIOChannel       *cache_io)
 {
   cairo_surface_t *surface;
@@ -770,7 +770,7 @@ file_printer_prepare_for_print (GtkPrinter       *printer,
                                GtkPrintSettings *settings,
                                GtkPageSetup     *page_setup)
 {
-  gdouble scale;
+  double scale;
   GtkPrintPages pages;
   GtkPageRange *ranges;
   int n_ranges;
index 1e8e0e35509a3fb00ccbf022c5a27ce0a092f3e1..8fba9b71fdf941f598e105d9937d95b499400e6c 100644 (file)
@@ -69,8 +69,8 @@ static void                 lpr_printer_prepare_for_print         (GtkPrinter
                                                                   GtkPageSetup            *page_setup);
 static cairo_surface_t *    lpr_printer_create_cairo_surface      (GtkPrinter              *printer,
                                                                   GtkPrintSettings        *settings,
-                                                                  gdouble                  width,
-                                                                  gdouble                  height,
+                                                                  double                   width,
+                                                                  double                   height,
                                                                   GIOChannel              *cache_io);
 static void                 gtk_print_backend_lpr_print_stream    (GtkPrintBackend         *print_backend,
                                                                   GtkPrintJob             *job,
@@ -184,8 +184,8 @@ _cairo_write (void                *closure,
 static cairo_surface_t *
 lpr_printer_create_cairo_surface (GtkPrinter       *printer,
                                  GtkPrintSettings *settings,
-                                 gdouble           width, 
-                                 gdouble           height,
+                                 double            width, 
+                                 double            height,
                                  GIOChannel       *cache_io)
 {
   cairo_surface_t *surface;
index 33be6b617eeefba126b198a1ac56813272cdc59d..b0b1a8edbbd1fa559b7b1fe552b0b86ac2e924ae 100644 (file)
@@ -6,8 +6,8 @@ int cursor_x, cursor_y;
 
 static void
 motion_cb (GtkEventControllerMotion *motion,
-           gdouble                   x,
-           gdouble                   y,
+           double                    x,
+           double                    y,
            GtkWidget                *widget)
 {
   float processing_ms = gtk_adjustment_get_value (adjustment);
index 97418a60cf4a56c122e17112447d591d6d266e9a..2bd7a3876b3a43d9021ca7183a103dc0657eb53a 100644 (file)
@@ -5,12 +5,12 @@
 
 static void
 hsv_to_rgb (GdkRGBA *rgba,
-            gdouble  h,
-            gdouble  s,
-            gdouble  v)
+            double   h,
+            double   s,
+            double   v)
 {
-  gdouble hue, saturation, value;
-  gdouble f, p, q, t;
+  double hue, saturation, value;
+  double f, p, q, t;
 
   rgba->alpha = 1.0;
 
index 3d5b16562355a91d2ca083549f97aac773ad7e7d..f386c911b71dbf7221be4b930de7ad19f1a74f06 100644 (file)
@@ -51,11 +51,11 @@ create_widget_factory_content (void)
 
 static void
 set_adjustment_to_fraction (GtkAdjustment *adjustment,
-                            gdouble        fraction)
+                            double         fraction)
 {
-  gdouble upper = gtk_adjustment_get_upper (adjustment);
-  gdouble lower = gtk_adjustment_get_lower (adjustment);
-  gdouble page_size = gtk_adjustment_get_page_size (adjustment);
+  double upper = gtk_adjustment_get_upper (adjustment);
+  double lower = gtk_adjustment_get_lower (adjustment);
+  double page_size = gtk_adjustment_get_page_size (adjustment);
 
   gtk_adjustment_set_value (adjustment,
                             (1 - fraction) * lower +
@@ -69,7 +69,7 @@ scroll_viewport (GtkWidget     *viewport,
 {
   static gint64 start_time;
   gint64 now = gdk_frame_clock_get_frame_time (frame_clock);
-  gdouble elapsed;
+  double elapsed;
   GtkAdjustment *hadjustment, *vadjustment;
 
   if (start_time == 0)
index 0d0d88259a55b679d2e9e568a3788eacc65c3143..e85396cda131fcc1d3fb3caa5eaa4dc0d6f4657f 100644 (file)
@@ -109,7 +109,7 @@ progress_timeout (GtkWidget *assistant)
 {
   GtkWidget *progress;
   int current_page;
-  gdouble value;
+  double value;
 
   current_page = gtk_assistant_get_current_page (GTK_ASSISTANT (assistant));
   progress = gtk_assistant_get_nth_page (GTK_ASSISTANT (assistant), current_page);
index 5a477582422368761ee374a929e1febcd1992225..d2345b7dd541ea680936c6b2918911e8cf321916 100644 (file)
@@ -23,8 +23,8 @@
 
 #define EPSILON 1e-10
 
-static gdouble
-double_normalize (gdouble n)
+static double
+double_normalize (double n)
 {
   if (fabs (1.0 - n) < EPSILON)
     n = 1.0;
@@ -37,7 +37,7 @@ double_normalize (gdouble n)
 static void
 spin_xalign_cb (GtkSpinButton *spin, GtkFrame *frame)
 {
-  gdouble xalign;
+  double xalign;
 
   xalign = double_normalize (gtk_spin_button_get_value (spin));
   gtk_frame_set_label_align (frame, xalign);
index bb9a4ce829e7b8f05c0fecf11ba6b233a50e7534..e2af187dc5a7f1c5dc26295be3514839f6df7b81 100644 (file)
@@ -34,8 +34,8 @@ static GtkOrientation o;
 static void
 toggle_orientation (GtkGestureClick *gesture,
                     guint            n_press,
-                    gdouble          x,
-                    gdouble          y,
+                    double           x,
+                    double           y,
                     GtkGrid         *grid)
 {
   o = 1 - o;
index 310f59ab71eca9ac212e7d33338c1438e19024ef..028985e63b77bf722afb21172d420c8b490743a8 100644 (file)
@@ -2020,7 +2020,7 @@ entry_progress_timeout (gpointer data)
     }
   else
     {
-      gdouble fraction;
+      double fraction;
 
       fraction = gtk_entry_get_progress_fraction (GTK_ENTRY (data));
 
@@ -2463,8 +2463,8 @@ spin_button_time_output_func (GtkSpinButton *spin_button)
 {
   GtkAdjustment *adjustment;
   static char buf[6];
-  gdouble hours;
-  gdouble minutes;
+  double hours;
+  double minutes;
 
   adjustment = gtk_spin_button_get_adjustment (spin_button);
   hours = gtk_adjustment_get_value (adjustment) / 60.0;
@@ -2477,7 +2477,7 @@ spin_button_time_output_func (GtkSpinButton *spin_button)
 
 static int
 spin_button_month_input_func (GtkSpinButton *spin_button,
-                             gdouble       *new_val)
+                             double        *new_val)
 {
   int i;
   static const char *month[12] = { "January", "February", "March", "April",
@@ -2502,7 +2502,7 @@ spin_button_month_input_func (GtkSpinButton *spin_button,
       *new_val = 0.0;
       return GTK_INPUT_ERROR;
     }
-  *new_val = (gdouble) i;
+  *new_val = (double) i;
   return TRUE;
 }
 
@@ -2510,7 +2510,7 @@ static int
 spin_button_month_output_func (GtkSpinButton *spin_button)
 {
   GtkAdjustment *adjustment;
-  gdouble value;
+  double value;
   int i;
   static const char *month[12] = { "January", "February", "March", "April",
                              "May", "June", "July", "August", "September",
@@ -2529,11 +2529,11 @@ spin_button_month_output_func (GtkSpinButton *spin_button)
 
 static int
 spin_button_hex_input_func (GtkSpinButton *spin_button,
-                           gdouble       *new_val)
+                           double        *new_val)
 {
   const char *buf;
   char *err;
-  gdouble res;
+  double res;
 
   buf = gtk_editable_get_text (GTK_EDITABLE (spin_button));
   res = strtol(buf, &err, 16);
@@ -2549,7 +2549,7 @@ spin_button_hex_output_func (GtkSpinButton *spin_button)
 {
   GtkAdjustment *adjustment;
   static char buf[7];
-  gdouble val;
+  double val;
 
   adjustment = gtk_spin_button_get_adjustment (spin_button);
   val = gtk_adjustment_get_value (adjustment);
@@ -3516,7 +3516,7 @@ create_display_screen (GtkWidget *widget)
 
 static char *
 reformat_value (GtkScale *scale,
-                gdouble   value)
+                double    value)
 {
   return g_strdup_printf ("-->%0.*g<--",
                           gtk_scale_get_digits (scale), value);
@@ -5115,7 +5115,7 @@ static gboolean
 progress_timeout (gpointer data)
 {
   ProgressData *pdata = data;
-  gdouble new_val;
+  double new_val;
   char *text;
 
   if (pdata->activity)
index b0f8808cf53249602100b1fda610d3f2b6576b19..e3494db792e74a6ce1f12c5525d40bdee1ef5cac 100644 (file)
@@ -358,8 +358,8 @@ do_popup_menu (GtkWidget   *icon_list,
 static void
 press_handler (GtkGestureClick *gesture,
                guint            n_press,
-               gdouble          x,
-               gdouble          y,
+               double           x,
+               double           y,
                GtkWidget       *widget)
 {
   GtkTreePath *path = NULL;
index 242aa727ddf5b40ba28b57a431d56c305c6e147a..2886d66f7c112f752f14e16ee530913654eda6ec 100644 (file)
@@ -44,7 +44,7 @@ static gboolean
 increase_level (gpointer data)
 {
   GtkLevelBar *bar = data;
-  gdouble value;
+  double value;
 
   value = gtk_level_bar_get_value (bar);
   value += 0.1;
index 277a837e4baf1193136a6ceacc0253237eae5c7e..2c73d30f1bd83a53beda418035c2b4ee71247ab5 100644 (file)
@@ -64,8 +64,8 @@ trough (GtkToggleButton *button)
     }
 }
 
-gdouble marks[3] = { 0.0, 50.0, 100.0 };
-gdouble extra_marks[2] = { 20.0, 40.0 };
+double marks[3] = { 0.0, 50.0, 100.0 };
+double extra_marks[2] = { 20.0, 40.0 };
 
 static void
 extra (GtkToggleButton *button)
@@ -114,7 +114,7 @@ int main (int argc, char *argv[])
     "<small>Right</small>"
   };
 
-  gdouble bath_marks[4] = { 0.0, 33.3, 66.6, 100.0 };
+  double bath_marks[4] = { 0.0, 33.3, 66.6, 100.0 };
   const char *bath_labels[4] = {
     "<span color='blue' size='small'>Cold</span>",
     "<span size='small'>Baby bath</span>",
@@ -122,7 +122,7 @@ int main (int argc, char *argv[])
     "<span color='Red' size='small'>Hot</span>"
   };
 
-  gdouble pos_marks[4] = { 0.0, 33.3, 66.6, 100.0 };
+  double pos_marks[4] = { 0.0, 33.3, 66.6, 100.0 };
   const char *pos_labels[4] = { "Left", "Right", "Top", "Bottom" };
   gboolean done = FALSE;
 
index 6642ef3b447a3f4a548242b54c03abe94bcb4bdc..631b2059aadf853031df9c3567224d765ea80bc3 100644 (file)
@@ -24,7 +24,7 @@ content_width_changed (GtkSpinButton *spin_button,
                        gpointer       data)
 {
   GtkScrolledWindow *swindow = data;
-  gdouble value;
+  double value;
 
   value = gtk_spin_button_get_value (spin_button);
   gtk_scrolled_window_set_min_content_width (swindow, (int)value);
@@ -35,7 +35,7 @@ content_height_changed (GtkSpinButton *spin_button,
                         gpointer       data)
 {
   GtkScrolledWindow *swindow = data;
-  gdouble value;
+  double value;
 
   value = gtk_spin_button_get_value (spin_button);
   gtk_scrolled_window_set_min_content_height (swindow, (int)value);
index 913bfce662b7f9c7bb875cea5b6e497b973fd45b..b4d0b8b8b40b25259b7af8c834847e3742fc96d7 100644 (file)
@@ -211,7 +211,7 @@ test_run (const char        *title,
 {
   int i, k, d, items;
   GTimer *timer;
-  gdouble elapsed;
+  double elapsed;
   int memused;
 #ifdef HAVE_MALLINFO
   int uordblks_before = 0;
index 2980c027b59593f0ab982d06261860f8528cc401..81951c38e6ffcd59e38af1b36c6d6ee99314150e 100644 (file)
@@ -55,8 +55,8 @@ clicked_icon (GtkTreeView  *tv,
 static void
 release_event (GtkGestureClick *gesture,
                guint            n_press,
-               gdouble          x,
-               gdouble          y,
+               double           x,
+               double           y,
                GtkTreeView     *tv)
 {
   GtkTreePath *path;
index 7fb886dcf445fa754cad10abd2d1dc8bb20c739d..0291d3d7b440651d65ad341c7d114d8289508aa7 100644 (file)
@@ -19,7 +19,7 @@
 
 static void
 value_changed (GtkWidget *button,
-               gdouble volume,
+               double volume,
                gpointer user_data)
 {
   g_message ("volume changed to %f", volume);
index 0d583fe30acadc86508b557a99d5fb346bc6f468..e28d4aa79451e1671099cd354f557a650ed414a1 100644 (file)
@@ -202,8 +202,8 @@ gtk_focus_widget_snapshot (GtkWidget *widget, GtkSnapshot *snapshot)
 
 static void
 motion_cb (GtkEventControllerMotion *controller,
-           gdouble                   x,
-           gdouble                   y,
+           double                    x,
+           double                    y,
            GtkWidget                *widget)
 {
   GtkFocusWidget *self = GTK_FOCUS_WIDGET (widget);
index cc59a9525abd801dde6517104b4e11170c41e7df..ed070e111f5c8735fc130accd60eb49c2ebb6bd3 100644 (file)
@@ -4,7 +4,7 @@
 #include "variable.h"
 
 typedef struct {
-  gdouble angle;
+  double angle;
   gint64 stream_time;
   gint64 clock_time;
   gint64 frame_counter;
index d1189dc41e866624e675709db9d40119a017bef8..748cbcf106101c0449c89d99600c0e7c7a130c98 100644 (file)
@@ -435,7 +435,7 @@ dump_atk_value (AtkValue *atk_value,
                 GString  *string)
 {
   AtkRange *range;
-  gdouble value;
+  double value;
   char *text;
 
   value = 0.0;
index c25e491bf4cdcf14fa345ebdcd7e2b8ffb0b1c73..d04bbb7adc411fe9895a96aa50bd43c64073477d 100644 (file)
@@ -147,7 +147,7 @@ static void
 test_performance_list (void)
 {
   GtkBuilder *builder;
-  gdouble elapsed;
+  double elapsed;
   GtkWidget *window;
   GError *error = NULL;
 
@@ -172,7 +172,7 @@ static void
 test_a11y_performance_list (void)
 {
   GtkBuilder *builder;
-  gdouble elapsed;
+  double elapsed;
   GtkWidget *window;
   GError *error = NULL;
   int count_before;
@@ -294,7 +294,7 @@ static void
 test_performance_tree (void)
 {
   GtkBuilder *builder;
-  gdouble elapsed;
+  double elapsed;
   GtkWidget *window;
   GError *error = NULL;
 
@@ -319,7 +319,7 @@ static void
 test_a11y_performance_tree (void)
 {
   GtkBuilder *builder;
-  gdouble elapsed;
+  double elapsed;
   GtkWidget *window;
   GError *error = NULL;
   int count_before;
index 376eada8ead269cc241087580026df13d343a0b5..f43acf933d25646cb5d9a9bdd4dee01f788f78a6 100644 (file)
@@ -61,8 +61,8 @@ test_basic (GtkWidget *widget)
   NotifyData notify_data;
   AtkObject *atk_object;
   AtkValue *atk_value;
-  gdouble value = 50;
-  gdouble ret;
+  double value = 50;
+  double ret;
   char *text;
 
   atk_object = gtk_widget_get_accessible (widget);
index 63c0b5d67f75f55d4ffe31e0ed3ae950370ee4b0..8d8f9e3d01e8dcfeb9df323d76e9de24d9676231 100644 (file)
@@ -736,7 +736,7 @@ test_spin_button (void)
     "</interface>";
   GObject *obj;
   GtkAdjustment *adjustment;
-  gdouble value;
+  double value;
   
   builder = builder_new_from_string (buffer, -1, NULL);
   obj = gtk_builder_get_object (builder, "spinbutton1");
index 07dc374858053c619cdba4eee88d293a441ba65b..595c79ea8a6222fb018b226e2440e3fad30627d4 100644 (file)
@@ -81,8 +81,8 @@ point_press (PointState *point,
 static void
 point_update (PointState *point,
               GtkWidget  *widget,
-              gdouble     x,
-              gdouble     y)
+              double      x,
+              double      y)
 {
   GdkDisplay *display;
   GdkDevice *device;
@@ -247,7 +247,7 @@ typedef struct {
 } GestureData;
 
 static void
-press_cb (GtkGesture *g, int n_press, gdouble x, gdouble y, gpointer data)
+press_cb (GtkGesture *g, int n_press, double x, double y, gpointer data)
 {
   GtkEventController *c = GTK_EVENT_CONTROLLER (g);
   GdkEventSequence *sequence;
index a707fbc984ae4f2638fa5c04d43fd52471a30a8b..dda0f22d2b388149552679b4d3d7600e09432fe9 100644 (file)
@@ -272,10 +272,10 @@ check_property (GObject *instance, GParamSpec *pspec)
       guint i;
       NotifyData data;
       gulong id;
-      gdouble value;
-      gdouble new_value;
+      double value;
+      double new_value;
       int current_count;
-      gdouble delta;
+      double delta;
 
       data.name = pspec->name;
       data.count = 0;